[V3] Cleanup
This commit is contained in:
19
retrosign/info.json
Normal file
19
retrosign/info.json
Normal 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"
|
||||
}
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user