[V3] Cleanup

This commit is contained in:
aikaterna
2018-08-08 21:54:06 -07:00
parent aabe0cd6a5
commit be13d0f686
21 changed files with 431 additions and 175 deletions

19
retrosign/info.json Normal file
View File

@@ -0,0 +1,19 @@
{
"author": [
"aikaterna"
],
"description": "A port of Anismash's retrosign cog for v2: <https://github.com/Anismash/Ani-Cogs/tree/master/retrosign",
"install_msg": "Thanks for installing, have fun.",
"permissions" : [
"attach_files"
],
"requirements": [
"BeautifulSoup"
],
"short": "Posts an image of text",
"tags": [
"retro",
"80s"
],
"type": "COG"
}

View File

@@ -34,7 +34,7 @@ class Retrosign:
else:
return await ctx.send("\N{CROSS MARK} Your line is too long (14 character limit)")
elif len(texts) == 3:
texts[0] = re.sub("[^a-zA-Z0-9] ", "", texts[0])
texts[0] = re.sub("[^A-Za-z0-9 ]", "", texts[0])
if len(texts[0]) >= 15:
return await ctx.send(
"\N{CROSS MARK} Your first line is too long (14 character limit)"