Example #1
0
    def __init__(self, host, port, nick, ident, realname, owner):
        IrcBot.__init__(self, host, port, nick, ident, realname, owner)
        self.register_command(self.create_factoid, 'addfact')
        self.register_command(self.factoid_history, 'history')
        self.register_command(self.get_factoids_by, 'factby')

        self._conn = sqlite3.connect('factoids.db')
        self.c = self._conn.cursor()
        self._create_table()
Example #2
0
 def __init__(self, host, port, nick, ident, realname, owner, database, cal):
     IrcBot.__init__(self, host, port, nick, ident, realname, owner)
     self.database = database
     self.cal = cal
     self.register_command(self.move_to_channel, 'move_to')
     self.register_command(self.list_users, 'users')
     self.register_command(self.search_for, 'search_for')
     self.register_command(self.print_events, 'events')
     self.register_command(self.send_mail, 'mail')
     self.register_command(self.add_new_member, 'add_member')
     self.register_command(self.print_members, 'print_members')
     self.register_command(self.remove_member, 'remove_member')
     self.register_command(self.validate, 'validate')
Example #3
0
 def __init__(self, host, port, nick, ident, realname, owner):
     IrcBot.__init__(self, host, port, nick, ident, realname, owner)
     self.game = None
Example #4
0
 def __init__(self, host, port, nick, ident, realname, owner):
     IrcBot.__init__(self, host, port, nick, ident, realname, owner)
     self.register_command(self.piss_off_twat, 'piss_on')