1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Testing the tag, more than word seems to be breaking

This commit is contained in:
phxntxm 2016-07-12 11:40:34 -05:00
parent a7430a9dbd
commit 4454c07d58

View file

@ -126,7 +126,8 @@ class Core:
async def tag(self, ctx, *tag: str):
"""This can be used for custom tags
The format to call a custom tag is !tag <tag>"""
tag = ' '.join(tag)
tag = ' '.join(tag).strip()
await self.bot.say("Tag is ```{}```".format(tag))
cursor = config.getCursor()
cursor.execute('use {}'.format(config.db_default))
cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))