fixed help

This commit is contained in:
klemek
2021-01-11 16:49:20 +01:00
parent 7281fb9a8f
commit 3c8f827246
5 changed files with 43 additions and 33 deletions
+8 -6
View File
@@ -15,12 +15,14 @@ from utils import COMMON_HELP_ARGS
class CompositionScanner(Scanner):
@staticmethod
def help() -> str:
return "```\n"
+"%comp : Show composition statistics\n"
+"arguments:\n"
+COMMON_HELP_ARGS
+"Example: %comp #mychannel1 @user\n"
+"```"
return (
"```\n"
+ "%comp : Show composition statistics\n"
+ "arguments:\n"
+ COMMON_HELP_ARGS
+ "Example: %comp #mychannel1 @user\n"
+ "```"
)
def __init__(self):
super().__init__(
+11 -9
View File
@@ -14,15 +14,17 @@ from utils import emojis, COMMON_HELP_ARGS
class EmotesScanner(Scanner):
@staticmethod
def help() -> str:
return "```\n"
+"%emotes : Rank emotes 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"
+"```"
return (
"```\n"
+ "%emotes : Rank emotes 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"
+ "```"
)
def __init__(self):
super().__init__(
+8 -6
View File
@@ -14,12 +14,14 @@ from utils import COMMON_HELP_ARGS
class FrequencyScanner(Scanner):
@staticmethod
def help() -> str:
return "```\n"
+"%freq : Show frequency-related statistics\n"
+"arguments:\n"
+COMMON_HELP_ARGS
+"Example: %freq #mychannel1 @user\n"
+"```"
return (
"```\n"
+ "%freq : Show frequency-related statistics\n"
+ "arguments:\n"
+ COMMON_HELP_ARGS
+ "Example: %freq #mychannel1 @user\n"
+ "```"
)
def __init__(self):
super().__init__(
+8 -6
View File
@@ -15,12 +15,14 @@ from utils import COMMON_HELP_ARGS
class FullScanner(Scanner):
@staticmethod
def help() -> str:
return "```\n"
+"%full : Show full statistics\n"
+"arguments:\n"
+COMMON_HELP_ARGS
+"Example: %full #mychannel1 @user\n"
+"```"
return (
"```\n"
+ "%full : Show full statistics\n"
+ "arguments:\n"
+ COMMON_HELP_ARGS
+ "Example: %full #mychannel1 @user\n"
+ "```"
)
def __init__(self):
super().__init__(
+8 -6
View File
@@ -14,12 +14,14 @@ from utils import COMMON_HELP_ARGS
class PresenceScanner(Scanner):
@staticmethod
def help() -> str:
return "```\n"
+"%pres : Show presence statistics\n"
+"arguments:\n"
+COMMON_HELP_ARGS
+"Example: %pres #mychannel1 @user\n"
+"```"
return (
"```\n"
+ "%pres : Show presence statistics\n"
+ "arguments:\n"
+ COMMON_HELP_ARGS
+ "Example: %pres #mychannel1 @user\n"
+ "```"
)
def __init__(self):
super().__init__(