From 934ffaa1c3e82581c8e476b2d2c9b19f27454caa Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 1 Apr 2020 12:56:37 +0200 Subject: [PATCH] Fixing stuff --- Gwendolyn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gwendolyn.py b/Gwendolyn.py index 9d82a4b..3e058c9 100644 --- a/Gwendolyn.py +++ b/Gwendolyn.py @@ -4,6 +4,7 @@ import discord import asyncio import pickle import codecs +import string import funcs @@ -163,7 +164,7 @@ async def on_message(message): # from funcs/swfuncs/swchar.py elif message.content.lower().startswith("!swchar") or message.content.lower().startswith("!sw"): funcs.logThis(message.author.name+" ran \""+message.content+"\"") - command = funcs.cap(message.content.lower().replace("!swchar","").replace("!sw","").replace("+","+ ")) + command = string.capwords(message.content.lower().replace("!swchar","").replace("!sw","").replace("+","+ ").replace("-","- ").replace(",",", ")) title, desc = funcs.parseChar(message.author.name,command) if title != "": em1 = discord.Embed(title = title, description = desc, colour=0xDEADBF)