1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

COrrect bool comparison

This commit is contained in:
phxntxm 2019-01-29 00:06:05 -06:00
parent ec0fa5509d
commit 6668030cd3

View file

@ -24,7 +24,7 @@ class Roles:
EXAMPLE: !colour red EXAMPLE: !colour red
RESULT: A role that matches red (#e74c3c) will be given to you""" RESULT: A role that matches red (#e74c3c) will be given to you"""
result = await ctx.bot.db.fetchrow("SELECT colour_roles FROM guilds WHERE id = $1", ctx.guild.id) result = await ctx.bot.db.fetchrow("SELECT colour_roles FROM guilds WHERE id = $1", ctx.guild.id)
if result and result["colour_roles"]: if result and not result["colour_roles"]:
await ctx.send("Colour roles not allowed on this server! " await ctx.send("Colour roles not allowed on this server! "
"The command `allowcolours` must be ran to enable them!") "The command `allowcolours` must be ran to enable them!")
return return