Added swchar to Gwendolyn

This commit is contained in:
NikolajDanger
2020-03-22 17:33:05 +01:00
parent a3dd2255b6
commit 406b0f77c5

View File

@ -7,6 +7,7 @@ from GwendolynFuncs import roll_dice, helloFunc, imageFunc, movieFunc, cap
from lookupFuncs import monsterFunc, spellFunc from lookupFuncs import monsterFunc, spellFunc
from generators import nameGen, tavernGen from generators import nameGen, tavernGen
from swroll import parseRoll from swroll import parseRoll
from swchar import parseChar
client = discord.Client() client = discord.Client()
@ -136,5 +137,11 @@ async def on_message(message):
command = cap(message.content.lower().replace("!swroll","")) command = cap(message.content.lower().replace("!swroll",""))
await message.channel.send(parseRoll(message.author.name,command)) await message.channel.send(parseRoll(message.author.name,command))
elif message.content.lower().startswith("!swchar"):
localtime = time.asctime(time.localtime(time.time()))
print(localtime+"\n"+message.author.name+" ran !swchar")
command = cap(message.content.lower().replace("!swchar",""))
await message.channel.send(parseChar(message.author.name,command))
client.run("MzgwNzI4OTkwMTEwODQyODgx.DO81GQ.rctkEQtieciETXnmsYbwZvvOkaA") client.run("MzgwNzI4OTkwMTEwODQyODgx.DO81GQ.rctkEQtieciETXnmsYbwZvvOkaA")