Expanded Help Command
This commit is contained in:
parent
9de4b3fabe
commit
5ccf36b1bd
@ -18,6 +18,8 @@ class CommandChyron(AbstractCommand, metaclass=ABCMeta):
|
|||||||
self.help = ["This is a command to learn more about other commands.",
|
self.help = ["This is a command to learn more about other commands.",
|
||||||
"\nExample:","help \"COMMAND\""]
|
"\nExample:","help \"COMMAND\""]
|
||||||
|
|
||||||
|
self.blockDecor = "\n================================================================\n"
|
||||||
|
|
||||||
def do_command(self, bot, user_message):
|
def do_command(self, bot, user_message):
|
||||||
tempBool = True
|
tempBool = True
|
||||||
if tempBool == True:
|
if tempBool == True:
|
||||||
@ -30,6 +32,17 @@ class CommandChyron(AbstractCommand, metaclass=ABCMeta):
|
|||||||
|
|
||||||
returnMessage = helper.response
|
returnMessage = helper.response
|
||||||
bot.return_message(returnMessage)
|
bot.return_message(returnMessage)
|
||||||
|
elif i == 1:
|
||||||
|
commandsList = self.blockDecor + "Commands List:" + self.blockDecor + self.GetCommandsList(bot) + self.blockDecor
|
||||||
|
print(commandsList)
|
||||||
|
|
||||||
|
def GetCommandsList(self, bot):
|
||||||
|
commandsList = ""
|
||||||
|
i = 0
|
||||||
|
for cmd in bot.commands:
|
||||||
|
commandsList = commandsList + cmd + "\n"
|
||||||
|
|
||||||
|
return commandsList
|
||||||
|
|
||||||
def get_help(self):
|
def get_help(self):
|
||||||
return self.help
|
return self.help
|
||||||
@ -17,7 +17,7 @@ class User_Module():
|
|||||||
self.MessageLog:list = []
|
self.MessageLog:list = []
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
print("\nWaiting on User input...")
|
print("\nWaiting on User input...\n")
|
||||||
inputLoop = True
|
inputLoop = True
|
||||||
while inputLoop:
|
while inputLoop:
|
||||||
keyboardInput = input()
|
keyboardInput = input()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user