Help-Module #23

Merged
alex_orid merged 4 commits from Help-Module into master 2021-04-12 03:08:12 +00:00
2 changed files with 14 additions and 1 deletions
Showing only changes of commit 5ccf36b1bd - Show all commits

View File

@ -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

View File

@ -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()