Fixing stuff

This commit is contained in:
NikolajDanger
2020-04-01 12:56:37 +02:00
parent 6569aeca73
commit 934ffaa1c3

View File

@ -4,6 +4,7 @@ import discord
import asyncio import asyncio
import pickle import pickle
import codecs import codecs
import string
import funcs import funcs
@ -163,7 +164,7 @@ async def on_message(message):
# from funcs/swfuncs/swchar.py # from funcs/swfuncs/swchar.py
elif message.content.lower().startswith("!swchar") or message.content.lower().startswith("!sw"): elif message.content.lower().startswith("!swchar") or message.content.lower().startswith("!sw"):
funcs.logThis(message.author.name+" ran \""+message.content+"\"") 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) title, desc = funcs.parseChar(message.author.name,command)
if title != "": if title != "":
em1 = discord.Embed(title = title, description = desc, colour=0xDEADBF) em1 = discord.Embed(title = title, description = desc, colour=0xDEADBF)