Commit graph

133 commits

Author SHA1 Message Date
dece 4480a3b44a bot: stop plugin callbacks on the first success
When a plugin callbacks successfully handles an event it returns True,
and it now stops processing callbacks. It may be changed later to handle
multiple callbacks per event.
2020-11-02 18:35:16 +01:00
dece df04de5794 mood: add calm down command 2020-11-02 16:39:57 +01:00
dece a7b68a1596 sleep: add sleep/wakeup commands 2020-11-02 16:20:40 +01:00
dece 127ad5c895 plugin: allow excluding some handling conditions 2020-11-02 13:24:23 +01:00
dece f055ef76c4 plugin: add handling conditions for ques. & cmd.
The main purpose of this feature is to not answer questions when the bot
is not awake in the sleep plugin, but by making it a requirement purely
in the configuration we avoid making some plugins mandatory for the bot.
2020-11-02 12:57:15 +01:00
dece f346b9cb58 bot: add docs 2020-11-01 19:29:51 +01:00
dece 091d0ecd72 sleep: add plugin 2020-11-01 19:29:39 +01:00
dece ff88bfbb05 bot: remember joined channels 2020-11-01 19:23:42 +01:00
dece 721d99dba3 plugin: fix crash on parsing empty command 2020-10-31 18:12:08 +01:00
dece b26c68ed67 notes: add command to deliver messages now 2020-10-12 19:26:06 +02:00
dece 263e9fd615 notes: limit number of notes for an user 2020-10-12 19:19:50 +02:00
dece b87487deea notes: fix delivery of multiples notes 2020-10-12 19:09:55 +02:00
dece e51ca46bdb notes: confirm note has been taken 2020-10-12 19:09:42 +02:00
dece c2287f3cee notes: deliver notes when an user joins 2020-10-12 15:45:31 +02:00
dece 3d918d1de8 wikipedia: fix localisation 2020-10-09 23:37:54 +02:00
dece 70cdcad604 notes: add plugin, only taking notes 2020-10-09 23:37:35 +02:00
dece 9ab1812938 bot: support plugins names with multiples words 2020-10-09 22:37:35 +02:00
dece 74343e2a24 plugin: add forgotten signal_failure method 2020-10-09 22:37:35 +02:00
dece 5ed9d2f3ce bot: clean 2020-10-09 22:37:35 +02:00
dece f4e884e9d7 journee_mondiale: add plugin
Add support for commands in multiple words by letting a plugin decide if
the message content should be not split between ident/content.
2020-10-09 22:37:34 +02:00
dece 828802fdbe config: use a generic error message for issues 2020-10-09 21:59:44 +02:00
dece 93288d3599 plugin: catch errors when loading resource files 2020-10-09 21:59:21 +02:00
dece 7eca5da533 random: add plugin 2020-10-09 18:57:26 +02:00
dece 985ac401b4 beers: add plugin 2020-10-09 18:57:08 +02:00
dece 61703b484a plugin: handle resource files in configs 2020-10-09 16:03:09 +02:00
dece 8b5721375f wikipedia: add plugin 2020-10-09 15:11:53 +02:00
dece daab101a66 plugin: minor fixes 2020-10-09 13:30:52 +02:00
dece dca201cbc1 bot: check if plugins have their dependencies met 2020-10-09 13:30:28 +02:00
dece 4bbe0d1c79 plugin: check required configs on init 2020-10-09 12:51:53 +02:00
dece dc941c1985 plugin: add question-type plugins 2020-10-09 12:21:13 +02:00
dece 3f6ec00ffe bot: handle "/me" actions 2020-10-09 10:44:21 +02:00
dece dee6096af2 plugins: add base system with horoscope as demo 2020-10-09 10:40:37 +02:00
dece c109a0116b edmond: init 2020-10-08 18:46:45 +02:00