new scanner : %react

This commit is contained in:
klemek
2021-01-14 19:04:33 +01:00
parent 8576c74730
commit 959ece013b
4 changed files with 93 additions and 0 deletions
+7
View File
@@ -12,6 +12,7 @@ from scanners import (
MentionedScanner,
MessagesScanner,
ChannelsScanner,
ReactionsScanner,
)
from logs import GuildLogs
@@ -53,6 +54,12 @@ bot.register_command(
"emojis: rank emojis by their usage",
EmotesScanner.help(),
)
bot.register_command(
"(react(ions?)?)",
lambda *args: ReactionsScanner().compute(*args),
"react: rank users by their reactions",
ReactionsScanner.help(),
)
bot.register_command(
"(channels?|chan)",
lambda *args: ChannelsScanner().compute(*args),