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')
|
||||
botport = config.getint('dr.botzo', 'port')
|
||||
botnick = config.get('dr.botzo', 'nick')
|
||||
botpass = config.get('dr.botzo', 'pass')
|
||||
botuser = config.get('dr.botzo', 'user')
|
||||
botircname = config.get('dr.botzo', 'name')
|
||||
except NoSectionError as 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
|
||||
irc = DrBotIRC()
|
||||
server = irc.server().connect(botserver, botport, botnick, botircname)
|
||||
server = irc.server().connect(botserver, botport, botnick, botpass, botuser, botircname)
|
||||
|
||||
# load features
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue