Source code for tasbot.testplugin

import string
try:
	from tasbot.Plugin import IPlugin
except:
	from Plugin import IPlugin

#class Main(IPlugin):
	#def __init__(self,name,tasclient):
		#IPlugin.__init__(name,tasclient)
class Main:
[docs] def onconnected(self):
[docs] print "onconnected()" def ondisconnected(self):
[docs] print "ondisconnected()" def onmotd(self,content):
[docs] print "onmotd(%s)" % (str(content)) def onsaid(self,channel,user,message):
[docs] print "onsaid(%s,%s,%s)" % (str(channel),str(user),str(message)) def onsaidex(self,channel,user,message):
[docs] print "onsaidex(%s,%s,%s)" % (str(channel),str(user),str(message)) def onsaidprivate(self,user,message):
[docs] print "onsaidprivate(%s,%s)" % (str(user),str(message)) def onloggedin(self,socket):
[docs] print "onloggedin(%s)" % (str(socket)) socket.send("JOIN main\n") def onpong(self):
[docs] print "onpong()" def oncommandfromserver(self,command,args,socket):
[docs] print "oncommandfromserver(%s,%s,%s)" % (str(command),str(args),str(socket)) def onexit(self):
[docs] print "onexit()"