def __init__(self, bot, connection): '''Determines if a message is in fact a command, stores a list of all valid commands.''' self._bot = bot self.con = connection self._bot_nick = connection._nick self.logger = logging.getLogger("GorillaBot") self.command_list = {} self.admin_only = [ 'addadmin', 'join', 'part', 'quit', 'shutdown', 'removeadmin' ] self.organize_commands() self._throttle_list = {} self.plugin_path = os.path.dirname( os.path.abspath(__file__)) + '/plugins' self.stalker = Stalker()