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

Added functionality to remove tags for mutlipe words

This commit is contained in:
phxntxm 2016-07-12 11:48:47 -05:00
parent 19aa9be82a
commit e5aefae323

View file

@ -161,9 +161,10 @@ class Core:
@tag.command(name='delete', aliases=['remove', 'stop'], pass_context=True)
@commands.has_permissions(kick_members=True)
async def del_tag(self, ctx, tag: str):
async def del_tag(self, ctx, *tag: str):
"""Use this to remove a tag that from use for this server
Format to delete a tag is !tag delete <tag>"""
tag = ' '.join(tag).strip()
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))