hotdog/hotdog/command
2020-12-16 16:14:40 +01:00
..
urlinfo_ urlinfo:generic: use python-dateutil for date parsing 2020-12-16 16:14:40 +01:00
aoderb.py use autoflake to remove unused imports 2020-11-08 01:17:33 +01:00
covid.py make autoflake more aggressive & fix some lint 2020-11-08 10:52:50 +01:00
ddf.py use autoflake to remove unused imports 2020-11-08 01:17:33 +01:00
dm.py make autoflake more aggressive & fix some lint 2020-11-08 10:52:50 +01:00
feed.py feed: fix only the last configured feed being updated 2020-11-16 21:09:15 +01:00
help.py dump current state (wip-ish) 2020-11-01 16:31:37 +01:00
orakel.py orakel: add a spoiler warning for users inspecting the code 2020-11-14 14:39:20 +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 roll: allow junk at end of line 2020-11-10 21:24:41 +01:00
urlinfo.py urlinfo: make youtube-info a submodule for urlinfo 2020-11-14 14:32:46 +01:00
wikipedia.py use autoflake to remove unused imports 2020-11-08 01:17:33 +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")