Testing the tag, more than word seems to be breaking
This commit is contained in:
parent
a7430a9dbd
commit
4454c07d58
|
@ -126,7 +126,8 @@ class Core:
|
||||||
async def tag(self, ctx, *tag: str):
|
async def tag(self, ctx, *tag: str):
|
||||||
"""This can be used for custom tags
|
"""This can be used for custom tags
|
||||||
The format to call a custom tag is !tag <tag>"""
|
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 = config.getCursor()
|
||||||
cursor.execute('use {}'.format(config.db_default))
|
cursor.execute('use {}'.format(config.db_default))
|
||||||
cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))
|
cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))
|
||||||
|
|
Loading…
Reference in a new issue