dece
0168089dd8
random: rename to random_choice to avoid conflict
2 years ago
dece
02ffd07d72
translate: fix unit tests
2 years ago
dece
5f7f5db0ff
bot: show traceback in debug logs on unhandled exc
2 years ago
dece
31d7cc4284
translate: simplify the stupid ass mechanism
...
Now you either specify source/dest languages or nothing, way better.
2 years ago
dece
1e4184a18d
bot: fix bad call
2 years ago
dece
ae2f7069c7
youtube: remove debug log
2 years ago
dece
4177730164
plugin: save storage on edits
2 years ago
dece
448ee8477e
move plugins' requirements file
2 years ago
dece
0978b43d2c
youtube: add title and an response type icon
2 years ago
dece
3831987d9d
bot: make mypy happy with the plugins folder (meh)
2 years ago
dece
24bf8d02d0
add some typings to Bot, Plugin and more
2 years ago
dece
895b0dec47
style: run Black over the whole project
2 years ago
dece
1b2303617b
taxref: use shrlok to show images
2 years ago
dece
659dae9ce6
taxref: tell family name as well
2 years ago
dece
8020de4edf
plugin: answer to privmsg mostly like pubmsg
2 years ago
dece
a8b1b811c5
taxref: add function to get scientific name
2 years ago
dece
b333b5d944
shrlok: fix bad kwarg
2 years ago
dece
9c78abd7f3
shrlok: prefix message length
2 years ago
dece
4d7be3d9d8
shrlok: init plugin
2 years ago
dece
3be1fddd93
taxref: do not show ambig. reply needlessly
...
esp. if there is a matching species with the exact same name…
2 years ago
dece
2ecec9eeb2
capture_give: fix crashing typo
2 years ago
dece
0d49fb1457
beers: offer a beer to someone in particular
2 years ago
dece
b6929c9453
plugins: stop using match as name
...
In Python 3.10 match will become a soft keyword. The program would still
work but syntax highlighting is getting weird.
2 years ago
dece
edbc35aa19
journee_mondiale: ditch the site for a static list
2 years ago
dece
7a2e011272
taxref: show a random photo if any are available
2 years ago
dece
85ce2902a7
taxref: new plugin!
2 years ago
dece
02399fe96d
bot: show fatal error in logs
2 years ago
dece
dd3ebcaa35
capture_give: add new plugin
2 years ago
dece
f9dca68fb0
plugin: allow plugins to write to other storages
2 years ago
dece
3a85e5a23c
bot: forgot to exit after received SIGTERM…
2 years ago
dece
6841b01e8d
youtube_parser: fix reading titles while sleeping
2 years ago
dece
bec9ff4d76
bot: drastically catch exceptions
...
For whatever reason systemd stop signals are not caught anymore by the
"except KeyboardInterrupt", so the storage file is lost on what should
be a graceful shutdown.
2 years ago
dece
0a304f9b6c
youtube_parser: support Invidious URLs
2 years ago
dece
ed26c70095
misc_reactions: add nudge
2 years ago
dece
dab1abf4c6
ambience: use zip_longest to not cut the reply
2 years ago
dece
9eec6795c6
ambience: apply effect to whole reply, not a chunk
2 years ago
dece
f97e2c51e4
ambience: use all words from content as target
2 years ago
dece
2af36ef429
ambience: add plugin
2 years ago
dece
2e60a74f49
unknown_command: log more, why is this broken
2 years ago
dece
73e3dedd43
unknown_command: fix WA parsing
...
Apparently the wrapper now uses Python bools instead of JS bools as
strings?
2 years ago
dece
1e9f10d549
journee_mondiale: do not crash if text not found
2 years ago
dece
6b9430aabb
bot: replace \r and \n before sending message
2 years ago
dece
56656dca98
misc_reactions: improve stutter reaction
2 years ago
dece
5f4af12a2f
journee_mondiale: do not crash if none was found
3 years ago
dece
3a756a7489
meteo_france: add plugin
...
Also remove the silly Python 3.7 requirement.
3 years ago
dece
6256975f90
bot: fix crash when trying to send a too long msg
3 years ago
dece
d47748a56a
capture: do not play while asleep…
3 years ago
dece
6ba697656d
misc_reactions: do not speak while asleep…
3 years ago
dece
77ff83be79
random: only pick a choice if there are at least 2
3 years ago
dece
47e24eebaa
capture: release thing on the next ping
3 years ago
dece
b7b6ca71be
wikipedia: catch all filthy exceptions
3 years ago
dece
5ca4a25b1f
bot: graceful exception catch
3 years ago
dece
19e5408ba2
youtube_parser: remove annoying logs
3 years ago
dece
cde8d8883d
youtube_parser: look for youtube URL in whole msg
3 years ago
dece
7ca8fa2ce4
youtube_parser: fix regex
3 years ago
dece
93d59ff30b
capture_list: add plugin
3 years ago
dece
7f5ed39722
capture: add plugin for a little game
3 years ago
dece
9ae5545516
music: update scaruffi version
3 years ago
dece
c21a1bb7b1
unknown_command: fix message handling
4 years ago
dece
bd0482023b
insults: lower priority
4 years ago
dece
f71df26493
plugins: improve logging
4 years ago
dece
4a0d780b45
misc_reactions: better logging of loaded reactions
4 years ago
dece
943e62fc31
plugin: check handling conditions for simple msgs
4 years ago
dece
937c5ad203
plugins: fix on_pubmsg return values
4 years ago
dece
7f75b15207
misc_reactions: fix weights
4 years ago
dece
0558fb7bdf
unknown_command: fix priority
4 years ago
dece
16d0df2a44
unknown_question: fix usage of misc_reactions
4 years ago
dece
806ef07e0c
bot: add some logs
4 years ago
dece
5469b1cdf3
misc_reactions: move reactions load to on_welcome
4 years ago
dece
3fd0cecf63
unknown_command: add plugin (WolframAlpha)
4 years ago
dece
ce26eda989
unknown_question: add plugin
4 years ago
dece
250d05e2f7
misc_reactions: handle weights on reactions
4 years ago
dece
cc81956b58
caretaker: add plugin
4 years ago
dece
bc8cf0e465
plugin: clean
4 years ago
dece
06dfb99635
plugin: handle question aliases
4 years ago
dece
7cbcd5eb85
music: add plugin using scaruffi library
4 years ago
dece
93eddad240
misc_reactions: add plugin
4 years ago
dece
d00bab19a6
insults: add plugin
4 years ago
dece
2b6ef89b9b
plugin: improve docs
4 years ago
dece
889b8c2b28
compliments: add plugin
4 years ago
dece
7d0b1c5270
translate: add plugin
4 years ago
dece
ed6c0e47dd
bot: clean
4 years ago
dece
1e38901c11
youtube_parser: add plugin (depends on youtube)
4 years ago
dece
474224b64e
bot: respect priority field of plugins
4 years ago
dece
8773141406
youtube: add plugin
4 years ago
dece
f83f7fd011
opinion: add plugin
4 years ago
dece
d21a6dd2be
plugin: auto-remove question marks
4 years ago
dece
3748312c41
plugin: handle aliases for commands
4 years ago
dece
d85d5e054f
mood: add get_pissed method (unused)
4 years ago
dece
29258a13b4
sleep: allow multiple sleep/wakeup messages
4 years ago
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.
4 years ago
dece
df04de5794
mood: add calm down command
4 years ago
dece
a7b68a1596
sleep: add sleep/wakeup commands
4 years ago
dece
127ad5c895
plugin: allow excluding some handling conditions
4 years ago
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.
4 years ago
dece
f346b9cb58
bot: add docs
4 years ago
dece
091d0ecd72
sleep: add plugin
4 years ago
dece
ff88bfbb05
bot: remember joined channels
4 years ago
dece
721d99dba3
plugin: fix crash on parsing empty command
4 years ago
dece
b26c68ed67
notes: add command to deliver messages now
4 years ago