from abc import ABCMeta import help_module from commands.command_base import AbstractCommand import random import utilities_script as utilities class CommandChyron(AbstractCommand, metaclass=ABCMeta): """ this is the help command. """ command = "help" def __init__(self): super().__init__(CommandChyron.command, n_args=5, command_type=AbstractCommand.CommandType.Praxis) self.help = ["This is a command to learn more about other commands.", "\nExample:","help \"COMMAND\""] def do_command(self, bot, user_message): tempBool = True if tempBool == True: tempParsedMessage = user_message.message.split(" ") i = len(tempParsedMessage) if i > 1: targetCommand = bot.commands[tempParsedMessage[1]] helper = help_module.Help_Module_.help_command_response(targetCommand, help_module.help_command_responseType.fancy) returnMessage = helper.response bot.return_message(returnMessage) def get_help(self): return self.help