Switch to asyncpg

This commit is contained in:
Dusty.P 2018-05-20 00:43:31 -08:00
parent b6f3125d30
commit 69a0475edd

View File

@ -456,8 +456,8 @@ class Utils:
def is_me(message):
if message.author == self.bot.user:
return True
prefixes = self.bot.db_con.fetchval('select prefix from guild_config where guild_id = %(id)s',
{'id': ctx.guild.id})
prefixes = self.bot.db_con.fetchval('select prefix from guild_config where guild_id = $1',
ctx.guild.id)
if prefixes:
for prefix in prefixes:
if message.content.startswith(prefix):