help consistancy
This commit is contained in:
@@ -10,21 +10,25 @@ When you need statistics about your discord server
|
||||
|
||||
* `%help (command)` - info about commands
|
||||
* `%info` - version and uptime
|
||||
* `%scan`: full analysis
|
||||
* `%freq`: frequency analysis
|
||||
* `%compo`: composition analysis
|
||||
* `%pres`: presence analysis
|
||||
* `%emojis` : rank emotes by their usage
|
||||
* `%scan` - full analysis
|
||||
* `%freq` - frequency analysis
|
||||
* `%compo` - composition analysis
|
||||
* `%pres` - presence analysis
|
||||
* `%emojis` - rank emotes by their usage
|
||||
* arguments:
|
||||
* <n> : top <n> emojis, default is 20
|
||||
* all : list all common emojis in addition to this guild's
|
||||
* members : show top member for each emote
|
||||
* sort:usage/reaction : other sorting methods
|
||||
* `%mentions`: rank mentions by their usage
|
||||
* `<n>` - top <n> emojis, default is 20
|
||||
* `all` - list all common emojis in addition to this guild's
|
||||
* `members` - show top member for each emote
|
||||
* `sort:usage/reaction` - other sorting methods
|
||||
* `%mentions` - rank mentions by their usage
|
||||
* arguments:
|
||||
* <n> : top <n> mentions, default is 10
|
||||
* all : show role/channel/everyone/here mentions
|
||||
* `%cancel` : cancel current analysis
|
||||
* `<n>` - top <n> mentions, default is 10
|
||||
* `all` - show role/channel/everyone/here mentions
|
||||
* `%mentioned` - rank specific user mentions by their usage
|
||||
* arguments:
|
||||
* `<n>` - top <n> mentions, default is 10
|
||||
* `all` - show role/channel/everyone/here mentions
|
||||
* `%cancel` - cancel current analysis
|
||||
|
||||
* Common arguments:
|
||||
* @member/me : filter for one or more member
|
||||
|
||||
+2
-2
@@ -31,10 +31,10 @@ bot.register_command(
|
||||
"(cancel|stop)",
|
||||
GuildLogs.cancel,
|
||||
"cancel: stop current analysis",
|
||||
"```\n" + "%cancel : Stop current analysis\n" + "```",
|
||||
"```\n" + "%cancel: Stop current analysis\n" + "```",
|
||||
)
|
||||
bot.register_command(
|
||||
"(mentioned)",
|
||||
"mentioned",
|
||||
lambda *args: MentionedScanner().compute(*args),
|
||||
"mentioned: rank specific user mentions by their usage",
|
||||
MentionedScanner.help(),
|
||||
|
||||
@@ -16,7 +16,7 @@ class CompositionScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%compo : Show composition statistics\n"
|
||||
+ "%compo: Show composition statistics\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "Example: %compo #mychannel1 @user\n"
|
||||
|
||||
@@ -16,13 +16,13 @@ class EmotesScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%emojis : Rank emojis 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 emojis\n"
|
||||
+ "* sort:usage/reaction : other sorting methods\n"
|
||||
+ "* <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 emojis\n"
|
||||
+ "* sort:usage/reaction - other sorting methods\n"
|
||||
+ "Example: %emojis 10 all #mychannel1 #mychannel2 @user\n"
|
||||
+ "```"
|
||||
)
|
||||
|
||||
@@ -16,7 +16,7 @@ class FrequencyScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%freq : Show frequency-related statistics\n"
|
||||
+ "%freq: Show frequency-related statistics\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "Example: %freq #mychannel1 @user\n"
|
||||
|
||||
@@ -16,7 +16,7 @@ class FullScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%scan : Show full statistics\n"
|
||||
+ "%scan: Show full statistics\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "Example: %scan #mychannel1 @user\n"
|
||||
|
||||
@@ -24,12 +24,12 @@ class MentionedScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%mentioned : Rank specific user's mentions by their usage\n"
|
||||
+ "%mentioned: Rank specific user's mentions by their usage\n"
|
||||
+ "arguments:\n"
|
||||
+ "* @member/me : (required) one or more member\n"
|
||||
+ "* @member/me - (required) one or more member\n"
|
||||
+ "\n".join(COMMON_HELP_ARGS.split("\n")[1:])
|
||||
+ "* <n>: top <n> mentions, default is 10\n"
|
||||
+ "* all: include bots mentions\n"
|
||||
+ "* <n> - top <n> mentions, default is 10\n"
|
||||
+ "* all - include bots mentions\n"
|
||||
+ "Example: %mentioned 10 @user\n"
|
||||
+ "```"
|
||||
)
|
||||
|
||||
@@ -24,11 +24,11 @@ class MentionsScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%mentions : Rank mentions by their usage\n"
|
||||
+ "%mentions: Rank mentions by their usage\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "* <n> : top <n> mentions, default is 10\n"
|
||||
+ "* all : show role/channel/everyone/here mentions\n"
|
||||
+ "* <n> - top <n> mentions, default is 10\n"
|
||||
+ "* all - show role/channel/everyone/here mentions\n"
|
||||
+ "Example: %mentions 10 #mychannel1 #mychannel2 @user\n"
|
||||
+ "```"
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ class PresenceScanner(Scanner):
|
||||
def help() -> str:
|
||||
return (
|
||||
"```\n"
|
||||
+ "%pres : Show presence statistics\n"
|
||||
+ "%pres: Show presence statistics\n"
|
||||
+ "arguments:\n"
|
||||
+ COMMON_HELP_ARGS
|
||||
+ "Example: %pres #mychannel1 @user\n"
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ from datetime import datetime
|
||||
|
||||
COMMON_HELP_ARGS = (
|
||||
""
|
||||
+ "* @member/me : filter for one or more member\n"
|
||||
+ "* #channel/here : filter for one or more channel\n"
|
||||
+ "* fast: only read cache\n"
|
||||
+ "* @member/me - filter for one or more member\n"
|
||||
+ "* #channel/here - filter for one or more channel\n"
|
||||
+ "* fast - only read cache\n"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user