1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-15 14:20:29 -05:00
parent 460c6f6285
commit 5988bd56ba

View file

@ -77,7 +77,7 @@ class Mod:
return return
cursor = config.getCursor() cursor = config.getCursor()
cursor.execute('use {}'.format(config.db_default)) cursor.execute('use {}'.format(config.db_perms))
cursor.execute("show tables like '{}'".format(ctx.message.server.id)) cursor.execute("show tables like '{}'".format(ctx.message.server.id))
result = cursor.fetchone() result = cursor.fetchone()
if result is None: if result is None:
@ -124,7 +124,7 @@ class Mod:
sql = "update `"+ctx.message.server.id+"` set perms=%s where command=%s" sql = "update `"+ctx.message.server.id+"` set perms=%s where command=%s"
cursor.execute(sql,(permissions,command)) cursor.execute(sql,(permissions,command))
await self.bot.say("I have just added your custom permissions; you now need to have {} permissions to use the command {}".format(permissions, command)) await self.bot.say("I have just added your custom permissions; you now need to have `{}` permissions to use the command `{}`".format(permissions, command))
config.closeConnection() config.closeConnection()