%mentioned command

This commit is contained in:
klemek
2021-01-13 16:41:10 +01:00
parent 86dc115697
commit aa51e2cda0
4 changed files with 116 additions and 2 deletions
+7
View File
@@ -9,6 +9,7 @@ from scanners import (
CompositionScanner,
PresenceScanner,
MentionsScanner,
MentionedScanner,
)
from logs import GuildLogs
@@ -32,6 +33,12 @@ bot.register_command(
"cancel: stop current analysis",
"```\n" + "%cancel : Stop current analysis\n" + "```",
)
bot.register_command(
"(mentioned)",
lambda *args: MentionedScanner().compute(*args),
"mentioned: rank specific user mentions by their usage",
MentionedScanner.help(),
)
bot.register_command(
"(mentions?)",
lambda *args: MentionsScanner().compute(*args),