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