From 1e33859f28c439ca45daea7fe44ced99c6ccd527 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Fri, 16 Apr 2021 04:59:22 -0400 Subject: [PATCH] Added Help --- commands/implemented/command_roll.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/commands/implemented/command_roll.py b/commands/implemented/command_roll.py index 68fb63f..8308cea 100644 --- a/commands/implemented/command_roll.py +++ b/commands/implemented/command_roll.py @@ -17,25 +17,23 @@ class CommandRoll_Praxis(AbstractCommand, metaclass=ABCMeta): def __init__(self): super().__init__(CommandRoll_Praxis.command, n_args=1, command_type=AbstractCommand.CommandType.Praxis) - self.help = ["MISSING HELP ENTRY", - "\nExample:","command \"PARAM\""] + self.help = ["This will roll dice, based on your inputs.", + "\nExample:","roll \"d20\"", "roll \"1D20+5\"", "roll \"10df\"", "roll \"10Df+3\""] self.isCommandEnabled = True - self.bot = None def do_command(self, bot, user_message): #print("roll Detected") #message.chat.send("test acknowledged") - self.bot = bot diceRoll: str = "" - self.bot.return_message("\nRolling Dice...") + bot.return_message("\nRolling Dice...") #print("Rolling Dice...") if ("f") in user_message.message.lower(): diceRoll = self.roll(2, user_message) else: diceRoll = self.roll(1, user_message) - self.bot.return_message(diceRoll) + bot.return_message(diceRoll) def roll(self, roll_type, user_message):