Esempio n. 1
0
def init():
    global pdb

    host.registerHandler('ProcessCommand', onCommand)

    pdb = PluginDB()
    pdb.dbconnect()
Esempio n. 2
0
def init():
	global pdb
	
	host.registerHandler('ProcessCommand', onCommand)
	
	pdb = PluginDB()
	pdb.dbconnect()
Esempio n. 3
0
def init():
    global pdb

    host.registerHandler('ProcessCommand', onCommand, True)

    pdb = PluginDB()
    print("[GETGAMES] Connecting to database...")
    pdb.dbconnect()
Esempio n. 4
0
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand, True)
	
	pdb = PluginDB()
	print("[GETGAMES] Connecting to database...")
	pdb.dbconnect()
Esempio n. 5
0
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.notifyReady(dbReady)
	pdb.setPluginName("lottery")
Esempio n. 6
0
def init():
    global pdb

    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('ChatReceived', onTalk)
    host.registerHandler('Update', onUpdate)

    pdb = PluginDB()
    pdb.setPluginName("trivia")
    dbReady()
Esempio n. 7
0
def init():
    global pdb
    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('Update', onUpdate)

    if gqGamelist:
        pdb = PluginDB()
        pdb.dbconnect()

    refreshMaps()
Esempio n. 8
0
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('ChatReceived', onTalk)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.setPluginName("trivia")
	dbReady()
Esempio n. 9
0
def init():
	global scores, pdb

	host.registerHandler('ChatReceived', onTalk)
	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.notifyReady(dbReady)
	pdb.setPluginName("randspeed")
Esempio n. 10
0
def init():
	global pdb
	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)

	if gqGamelist:
		pdb = PluginDB()
		pdb.dbconnect()
	
	refreshMaps()
Esempio n. 11
0
def init():
    global pdb, commandAccess

    host.registerHandler('ProcessCommand', onCommand, True)

    pdb = PluginDB()
    pdb.dbconnect()

    # configuration
    config = host.config()
    commandAccess = config.getInt("p_inactive_access", commandAccess)
Esempio n. 12
0
def init():
	global pdb, commandAccess

	host.registerHandler('ProcessCommand', onCommand, True)
	
	pdb = PluginDB()
	pdb.dbconnect()
	
	# configuration
	config = host.config()
	commandAccess = config.getInt("p_inactive_access", commandAccess)
Esempio n. 13
0
def init():
    global pdb, controlAccess

    host.registerHandler("ProcessCommand", onCommand)
    host.registerHandler("Update", onUpdate)

    pdb = PluginDB()
    pdb.setPluginName("alarm")
    pdb.dbconnect()
    dbList()

    # configuration
    config = host.config()
    controlAccess = config.getInt("p_alarm_access", controlAccess)
Esempio n. 14
0
def init():
    global pdb

    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('Update', onUpdate)

    pdb = PluginDB()
    pdb.notifyReady(dbReady)
    pdb.setPluginName("lottery")
Esempio n. 15
0
def init():
    global scores, pdb

    host.registerHandler('ChatReceived', onTalk)
    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('Update', onUpdate)

    pdb = PluginDB()
    pdb.notifyReady(dbReady)
    pdb.setPluginName("randspeed")
Esempio n. 16
0
def init():
    global pdb, controlAccess

    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('Update', onUpdate)

    pdb = PluginDB()
    pdb.setPluginName("alarm")
    pdb.dbconnect()
    dbList()

    # configuration
    config = host.config()
    controlAccess = config.getInt("p_alarm_access", controlAccess)