🩸 Critical injury rolls

This commit is contained in:
NikolajDanger
2020-04-08 19:05:41 +02:00
parent 767d607f3f
commit 1e1dc9bd5f
4 changed files with 70 additions and 2 deletions

View File

@ -190,6 +190,23 @@ async def on_message(message):
for messageItem in messageList:
await message.channel.send(messageItem)
# Rolls for critical injuries
elif message.content.lower().startswith("!swcrit"):
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
command = message.content.lower().replace("!swcrit","").replace(" ","").replace("+","")
if command == "":
command = 0
try:
newMessage = funcs.critRoll(int(command))
except:
newMessage = "Try using a number, stupid"
messageList = newMessage.split("\n")
for messageItem in messageList:
await message.channel.send(messageItem)
# Accesses and changes character sheet data with the parseChar function
# from funcs/swfuncs/swchar.py
elif message.content.lower().startswith("!swchar") or message.content.lower().startswith("!sw"):