dice in swroll

This commit is contained in:
NikolajDanger
2020-04-02 16:47:41 +02:00
parent 43d4fca76f
commit 87cebc6ab7
4 changed files with 149 additions and 36 deletions

View File

@ -164,13 +164,19 @@ async def on_message(message):
elif message.content.lower().startswith("!swroll"):
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
command = funcs.cap(message.content.lower().replace("!swroll",""))
await message.channel.send(funcs.parseRoll(message.author.name,command))
newMessage = funcs.parseRoll(message.author.name,command)
messageList = newMessage.split("\n")
for messageItem in messageList:
await message.channel.send(messageItem)
# Deals with Destiny Points and stuff
elif message.content.lower().startswith("!swd"):
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
command = message.content.lower().replace("!swd","")
await message.channel.send(funcs.parseDestiny(message.author.name,command))
newMessage = funcs.parseDestiny(message.author.name,command)
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