No await in __init__

pull/109/head
bobloy 5 years ago
parent bedeb0e2ce
commit 90d033aa50

@ -46,7 +46,7 @@ class StealEmoji(Cog):
self.config.register_global(**default_global) self.config.register_global(**default_global)
self.is_on = await self.config.on() self.is_on = None
@commands.group() @commands.group()
async def stealemoji(self, ctx: commands.Context): async def stealemoji(self, ctx: commands.Context):
@ -139,6 +139,9 @@ class StealEmoji(Cog):
# print("Not a custom emoji") # print("Not a custom emoji")
return return
if self.is_on is None:
self.is_on = await self.config.on()
if not self.is_on: if not self.is_on:
# print("Collecting is off") # print("Collecting is off")
return return

Loading…
Cancel
Save