def init(): db = database.DB() db.tableSelect("clients", "cgroup") uberadmin = db.rowFind(5) if uberadmin == None: A.addCmd('!iddqd', cmdIDDQD, "Set yourself as uberadmin. Usage: !iddqd", 0) db.disconnect()
from init import A def testr(obj, n0): A.say('TESTING 1... 2... 3...') print "Testing!" A.addCmd('!t', testr, ':D', 0) def init(): pass