예제 #1
0
def init():
    global pdb

    host.registerHandler('ProcessCommand', onCommand)

    pdb = PluginDB()
    pdb.dbconnect()
예제 #2
0
파일: dbstats.py 프로젝트: uakfdotb/pychop
def init():
	global pdb
	
	host.registerHandler('ProcessCommand', onCommand)
	
	pdb = PluginDB()
	pdb.dbconnect()
예제 #3
0
def init():
    global pdb

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

    pdb = PluginDB()
    print("[GETGAMES] Connecting to database...")
    pdb.dbconnect()
예제 #4
0
파일: getgames.py 프로젝트: uakfdotb/pychop
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand, True)
	
	pdb = PluginDB()
	print("[GETGAMES] Connecting to database...")
	pdb.dbconnect()
예제 #5
0
파일: lottery.py 프로젝트: uakfdotb/pychop
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.notifyReady(dbReady)
	pdb.setPluginName("lottery")
예제 #6
0
파일: trivia.py 프로젝트: w3gh/pychop
def init():
    global pdb

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

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

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

    refreshMaps()
예제 #8
0
파일: trivia.py 프로젝트: uakfdotb/pychop
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('ChatReceived', onTalk)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.setPluginName("trivia")
	dbReady()
예제 #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")
예제 #10
0
def init():
	global pdb
	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)

	if gqGamelist:
		pdb = PluginDB()
		pdb.dbconnect()
	
	refreshMaps()
예제 #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)
예제 #12
0
파일: inactive.py 프로젝트: uakfdotb/pychop
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)
예제 #13
0
파일: alarm.py 프로젝트: uakfdotb/pychop
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)
예제 #14
0
파일: lottery.py 프로젝트: w3gh/pychop
def init():
    global pdb

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

    pdb = PluginDB()
    pdb.notifyReady(dbReady)
    pdb.setPluginName("lottery")
예제 #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")
예제 #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)