示例#1
0
def init():
	global pdb

	host.registerHandler('ProcessCommand', onCommand)
	host.registerHandler('Update', onUpdate)
	
	pdb = PluginDB()
	pdb.notifyReady(dbReady)
	pdb.setPluginName("lottery")
示例#2
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")
示例#3
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")
示例#4
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")