1
0
Fork 0
mirror of synced 2024-06-03 11:14:33 +12:00

Add another lower/strip in case old tags aren't

This commit is contained in:
Phxntxm 2017-03-27 18:24:53 -05:00
parent a77d22effc
commit bc0aac4009

View file

@ -39,7 +39,7 @@ class Tags:
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']:
if t['trigger'] == tag: if t['trigger'].lower.strip() == tag:
await ctx.send(t['result']) await ctx.send(t['result'])
return return
await ctx.send("There is no tag called {}".format(tag)) await ctx.send("There is no tag called {}".format(tag))