Added Help
This commit is contained in:
parent
3bbd5d1611
commit
1e33859f28
@ -17,25 +17,23 @@ class CommandRoll_Praxis(AbstractCommand, metaclass=ABCMeta):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(CommandRoll_Praxis.command, n_args=1, command_type=AbstractCommand.CommandType.Praxis)
|
super().__init__(CommandRoll_Praxis.command, n_args=1, command_type=AbstractCommand.CommandType.Praxis)
|
||||||
self.help = ["MISSING HELP ENTRY",
|
self.help = ["This will roll dice, based on your inputs.",
|
||||||
"\nExample:","command \"PARAM\""]
|
"\nExample:","roll \"d20\"", "roll \"1D20+5\"", "roll \"10df\"", "roll \"10Df+3\""]
|
||||||
self.isCommandEnabled = True
|
self.isCommandEnabled = True
|
||||||
self.bot = None
|
|
||||||
|
|
||||||
def do_command(self, bot, user_message):
|
def do_command(self, bot, user_message):
|
||||||
#print("roll Detected")
|
#print("roll Detected")
|
||||||
#message.chat.send("test acknowledged")
|
#message.chat.send("test acknowledged")
|
||||||
|
|
||||||
self.bot = bot
|
|
||||||
diceRoll: str = ""
|
diceRoll: str = ""
|
||||||
self.bot.return_message("\nRolling Dice...")
|
bot.return_message("\nRolling Dice...")
|
||||||
#print("Rolling Dice...")
|
#print("Rolling Dice...")
|
||||||
if ("f") in user_message.message.lower():
|
if ("f") in user_message.message.lower():
|
||||||
diceRoll = self.roll(2, user_message)
|
diceRoll = self.roll(2, user_message)
|
||||||
else:
|
else:
|
||||||
diceRoll = self.roll(1, user_message)
|
diceRoll = self.roll(1, user_message)
|
||||||
|
|
||||||
self.bot.return_message(diceRoll)
|
bot.return_message(diceRoll)
|
||||||
|
|
||||||
|
|
||||||
def roll(self, roll_type, user_message):
|
def roll(self, roll_type, user_message):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user