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

Correct syntax error

This commit is contained in:
Phxntxm 2017-03-25 23:00:07 -05:00
parent e1b8bdcbe9
commit 5e0a4a763a

View file

@ -36,13 +36,13 @@ class Tags:
EXAMPLE: !tag butts
RESULT: Whatever you setup for the butts tag!!"""
tags = await utils.get_content('tags', str(ctx.message.guild.id))
if tags:
if tags and len(tags['tags']) > 0:
for t in tags['tags']:
if t['trigger'] == tag:
await ctx.send(t['result'])
return
await ctx.send("There is no tag called {}".format(tag))
else and len(tags['tags']) > 0:
else:
await ctx.send("There are no tags setup on this server!")