Skip to content

Supybot Website

Sections
Personal tools
You are here: Home » Supybot Discussion Forums » Developer Forum » supybot.schedule problems

 • supybot.schedule problems

Document Actions
Replies: 2   Views: 3112
Up one level
You need to be a registered member to post to this forum. Register now.

 • supybot.schedule problems

Posted by Feeder_Fan at 22:34 September 19, 2006

Hi everybody and thank you for the bot, it's a very usefull tool. Excuse my language but i'm not english. I'm still working on a supybot plugin for seven hours and i'm desperate !! I wanna make the bot Temporary Kick/Ban somebody from a channel if it's said some kind of bad words like spamming etc. (Here it's a key sentence: "xdcc list")

So I tried to redefine doPrivmsg and adding a schedule object to unban after some time. Every thing's okay except the unban ... My code follow: import time

And i constantly get this error:

ERROR 2006-09-20T04:22:15 Uncaught exception in scheduled function: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/supybot/schedule.py", line 130, in run f() TypeError: 'NoneType' object is not callable ERROR 2006-09-20T04:22:15 Exception id: 0xd2795

This unban methode is picked in AutoMode plugin, please help me >_<
Member
Posts: 3

 • Re: supybot.schedule problems

Posted by Feeder_Fan at 08:29 September 20, 2006
Perhaps it was the wrong place to post !
If so, could someone (Admin) transfert the thread to a better place. Thank you :)
Member
Posts: 3

 • Re: supybot.schedule problems

Posted by Feeder_Fan at 12:07 September 20, 2006
So, it was a big mistake of mine ...

replace schedule.addEvent(unban(), time.time()+period)
by
schedule.addEvent(unban, time.time()+period)

and it works well...
Member
Posts: 3

 

Powered by Plone

This site conforms to the following standards: