예제 #1
0
    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()
예제 #2
0
    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()
예제 #3
0
	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
예제 #4
0
    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