Needed to commit something, this will need to be changed.

This commit is contained in:
Jeremy Fincher 2003-04-22 11:27:32 +00:00
parent 5045894dcc
commit bef6533ed4

View File

@ -1,8 +1,14 @@
Here's an example of how to code a few callbacks for SupyBot. Here's an example of how to code a few callbacks for SupyBot.
Let's say you want to make an annoying "Mimic" callback that repeats everything Let's say you want to make an annoying "Mimic" callback that repeats everything
anyone says to the bot or on the channels the bot is in. Here's what it looks anyone says to the bot or on the channels the bot is in. That
like: shouldn't be too hard. First, you'll need to make a new module to
hold the plugin:
$ scripts/newplugin.py Mimic
That'll make the file plugins/Mimic.py, which will
[code] [code]
class AnnoyingMimic(irclib.IrcCallback): class AnnoyingMimic(irclib.IrcCallback):