emotes => emojis
This commit is contained in:
+6
-6
@@ -25,18 +25,18 @@ bot = Bot(
|
||||
bot.log_calls = True
|
||||
bot.client.bot = bot # TODO place in miniscord
|
||||
|
||||
bot.register_command(
|
||||
"emojis",
|
||||
lambda *args: EmotesScanner().compute(*args),
|
||||
"emojis: emojis analysis",
|
||||
EmotesScanner.help(),
|
||||
)
|
||||
bot.register_command(
|
||||
"pres(ence)?",
|
||||
lambda *args: PresenceScanner().compute(*args),
|
||||
"pres: presence analysis",
|
||||
PresenceScanner.help(),
|
||||
)
|
||||
bot.register_command(
|
||||
"emotes",
|
||||
lambda *args: EmotesScanner().compute(*args),
|
||||
"emotes: emotes analysis",
|
||||
EmotesScanner.help(),
|
||||
)
|
||||
bot.register_command(
|
||||
"compo(sition)?",
|
||||
lambda *args: CompositionScanner().compute(*args),
|
||||
|
||||
@@ -16,13 +16,13 @@ class EmotesScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%emotes : Rank emotes by their usage\n"
|
||||
+ "%emojis : Rank emojis by their usage\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "* <n> : top <n> emojis, default is 20\n"
|
||||
+ "* all : list all common emojis in addition to this guild's\n"
|
||||
+ "* members : show top member for each emote\n"
|
||||
+ "Example: %emotes 10 all #mychannel1 #mychannel2 @user\n"
|
||||
+ "* members : show top member for each emojis\n"
|
||||
+ "Example: %emojis 10 all #mychannel1 #mychannel2 @user\n"
|
||||
+ "```"
|
||||
)
|
||||
|
||||
@@ -31,7 +31,7 @@ class EmotesScanner(Scanner):
|
||||
has_digit_args=True,
|
||||
valid_args=["all", "members"],
|
||||
help=EmotesScanner.help(),
|
||||
intro_context="Emotes usage",
|
||||
intro_context="Emoji usage",
|
||||
)
|
||||
self.top = 20
|
||||
self.all_emojis = False
|
||||
|
||||
Reference in New Issue
Block a user