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

Made the last change on tag as well

This commit is contained in:
phxntxm 2016-07-12 10:58:25 -05:00
parent d3a20edcf3
commit 280544b734

View file

@ -125,7 +125,7 @@ class Core:
@commands.group(pass_context=True, invoke_without_command=True)
async def tag(self, ctx, tag: str):
cursor = config.getCursor()
cursor.execute('use %s', (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))
result = cursor.fetchone()
if result is None:
@ -169,6 +169,6 @@ class Core:
await self.bot.say('I have just removed the tag {}'.format(tag))
config.closeConnection()
!
def setup(bot):
bot.add_cog(Core(bot))