1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Lower and strip triggers for tags on creation and usage

This commit is contained in:
Phxntxm 2017-03-27 18:23:09 -05:00
parent 1296ab6d39
commit a77d22effc

View file

@ -35,6 +35,7 @@ class Tags:
EXAMPLE: !tag butts
RESULT: Whatever you setup for the butts tag!!"""
tag = tag.lower().strip()
tags = await utils.get_content('tags', str(ctx.message.guild.id))
if tags and len(tags['tags']) > 0:
for t in tags['tags']:
@ -63,7 +64,7 @@ class Tags:
await ctx.send("You took too long!")
return
trigger = msg.content
trigger = msg.content.lower().strip()
try:
await my_msg.delete()
await msg.delete()