master updates #41

Manually merged
alex_orid merged 177 commits from master into github-master 2021-05-13 21:11:10 +00:00
Showing only changes of commit 1e33859f28 - Show all commits

View File

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