Fixing stuff
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user