diff --git a/commands/implemented/command_help.py b/commands/implemented/command_help.py index 4b665fc..77160ab 100644 --- a/commands/implemented/command_help.py +++ b/commands/implemented/command_help.py @@ -18,6 +18,8 @@ class CommandChyron(AbstractCommand, metaclass=ABCMeta): self.help = ["This is a command to learn more about other commands.", "\nExample:","help \"COMMAND\""] + self.blockDecor = "\n================================================================\n" + def do_command(self, bot, user_message): tempBool = True if tempBool == True: @@ -30,6 +32,17 @@ class CommandChyron(AbstractCommand, metaclass=ABCMeta): returnMessage = helper.response 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): return self.help \ No newline at end of file diff --git a/user_module.py b/user_module.py index 4e904d0..45945dc 100644 --- a/user_module.py +++ b/user_module.py @@ -17,7 +17,7 @@ class User_Module(): self.MessageLog:list = [] def main(self): - print("\nWaiting on User input...") + print("\nWaiting on User input...\n") inputLoop = True while inputLoop: keyboardInput = input()