mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Needed to commit something, this will need to be changed.
This commit is contained in:
parent
5045894dcc
commit
bef6533ed4
10
docs/EXAMPLE
10
docs/EXAMPLE
@ -1,8 +1,14 @@
|
||||
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
|
||||
anyone says to the bot or on the channels the bot is in. Here's what it looks
|
||||
like:
|
||||
anyone says to the bot or on the channels the bot is in. That
|
||||
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]
|
||||
class AnnoyingMimic(irclib.IrcCallback):
|
||||
|
Loading…
Reference in New Issue
Block a user