Lower and strip triggers for tags on creation and usage
This commit is contained in:
parent
1296ab6d39
commit
a77d22effc
|
@ -35,6 +35,7 @@ class Tags:
|
||||||
|
|
||||||
EXAMPLE: !tag butts
|
EXAMPLE: !tag butts
|
||||||
RESULT: Whatever you setup for the butts tag!!"""
|
RESULT: Whatever you setup for the butts tag!!"""
|
||||||
|
tag = tag.lower().strip()
|
||||||
tags = await utils.get_content('tags', str(ctx.message.guild.id))
|
tags = await utils.get_content('tags', str(ctx.message.guild.id))
|
||||||
if tags and len(tags['tags']) > 0:
|
if tags and len(tags['tags']) > 0:
|
||||||
for t in tags['tags']:
|
for t in tags['tags']:
|
||||||
|
@ -63,7 +64,7 @@ class Tags:
|
||||||
await ctx.send("You took too long!")
|
await ctx.send("You took too long!")
|
||||||
return
|
return
|
||||||
|
|
||||||
trigger = msg.content
|
trigger = msg.content.lower().strip()
|
||||||
try:
|
try:
|
||||||
await my_msg.delete()
|
await my_msg.delete()
|
||||||
await msg.delete()
|
await msg.delete()
|
||||||
|
|
Loading…
Reference in a new issue