hotdog/hotdog/command
2020-11-07 19:53:36 +01:00
..
aoderb.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
covid.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
ddf.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
dm.py dm: add new response 2020-11-07 19:53:01 +01:00
feed.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
help.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
orakel.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
post.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
prost.py prost: harden code against unicode input problems 2020-11-07 19:53:36 +01:00
README.md dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
reminder.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
retour.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
roll.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
urlinfo.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
wikipedia.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
youtube.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00

A plugin is any module that defines an init function that takes a Bot instance as first argument.
The function can then register any message handlers or timers on the bot, or add any dependencies it requires.

Example:

from ..functions import reply

HELP = """Responds to your hello.
!hello
"""

def init(bot):
    bot.on_command("hello", reply_world)

async def reply_world(message):
    await reply(message, "world")