and username, password options to bot, and properly connect with those options.
This commit is contained in:
parent
fd7834756b
commit
54af309bbc
@ -81,6 +81,8 @@ try:
|
|||||||
botserver = config.get('dr.botzo', 'server')
|
botserver = config.get('dr.botzo', 'server')
|
||||||
botport = config.getint('dr.botzo', 'port')
|
botport = config.getint('dr.botzo', 'port')
|
||||||
botnick = config.get('dr.botzo', 'nick')
|
botnick = config.get('dr.botzo', 'nick')
|
||||||
|
botpass = config.get('dr.botzo', 'pass')
|
||||||
|
botuser = config.get('dr.botzo', 'user')
|
||||||
botircname = config.get('dr.botzo', 'name')
|
botircname = config.get('dr.botzo', 'name')
|
||||||
except NoSectionError as e:
|
except NoSectionError as e:
|
||||||
sys.exit("Aborted due to error with necessary configuration: " + str(e))
|
sys.exit("Aborted due to error with necessary configuration: " + str(e))
|
||||||
@ -94,7 +96,7 @@ irclib.DEBUG = config.getboolean('dr.botzo', 'debug')
|
|||||||
|
|
||||||
# create IRC and server objects and connect
|
# create IRC and server objects and connect
|
||||||
irc = DrBotIRC()
|
irc = DrBotIRC()
|
||||||
server = irc.server().connect(botserver, botport, botnick, botircname)
|
server = irc.server().connect(botserver, botport, botnick, botpass, botuser, botircname)
|
||||||
|
|
||||||
# load features
|
# load features
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user