예제 #1
0
def init():
	event.listen('Rehash', do_rehash)
예제 #2
0
def init():
	event.listen('Command/QUIT', doQuit)
예제 #3
0
파일: dice.py 프로젝트: BasementCat/FweeBot
def init():
	event.listen('Command/DICE', rollDice)
예제 #4
0
def init(): event.listen("Network/Incoming/Message/*", sendNickServ)

def cleanup(): event.unlisten(sendNickServ)
예제 #5
0
def init():
	event.listen('Command/DECIDE', decide)
예제 #6
0
def init():
	event.listen('Network/Incoming/Raw', dispatchMessages)
	event.listen('Server/Connect/Success', sendAuthentication)
	event.listen('Network/Incoming/Message/PING', respondToPing)
	event.listen('Network/Incoming/Message/[001-005]', setRegistered)
	event.listen('Server/Disconnect', handleDisconnect)
	event.listen('Server/Connect/Failure', handleDisconnect)
	event.listen('Network/Authenticated', doAutojoin)
	event.listen('Network/Incoming/Message/JOIN', handleChannelUserChange)
	event.listen('Network/Incoming/Message/353', handleChannelUserChange)
	event.listen('Network/Incoming/Message/PART', handleChannelUserChange)
	event.listen('Network/Incoming/Message/QUIT', handleChannelUserChange)
	event.listen('Network/Incoming/Message/KICK', handleChannelUserChange)
	event.listen('Network/Incoming/Message/PRIVMSG', dispatchCommands)
	event.listen('Command/XYZZY', zork)
	if core.DEBUG:
		event.listen('Network/Incoming/Message/*', printmsgs)
		event.listen('Network/Incoming/Message/366', handleChannelUserChange)