def __init__(self): '''Initialize the bot: Only called on when the bot is first launched, not subsequent reconnects.''' log.msg("Initializing bot...") # Configure internals intent.service.link(self) moduleLoader.loadModules()
def __init__(self): """Initialize the bot: Only called on when the bot is first launched, not subsequent reconnects.""" log.msg("Initializing bot...") # Configure internals intent.service.link(self) moduleLoader.loadModules()
def reloadModules(self, bot, room, user, args): errors = moduleLoader.loadModules() if (errors): user.send("Modules did not reload successfully, check the error log.") else: user.send("Modules loaded successfully!") return True
def reloadModules(self, bot, room, user, args): errors = moduleLoader.loadModules() if (errors): user.send( "Modules did not reload successfully, check the error log.") else: user.send("Modules loaded successfully!") return True