From 90d033aa501223e8f4b4f2b300c04af3271029c2 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 30 Jul 2020 17:31:18 -0400 Subject: [PATCH] No await in __init__ --- stealemoji/stealemoji.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stealemoji/stealemoji.py b/stealemoji/stealemoji.py index cfe011b..cbcbc72 100644 --- a/stealemoji/stealemoji.py +++ b/stealemoji/stealemoji.py @@ -46,7 +46,7 @@ class StealEmoji(Cog): self.config.register_global(**default_global) - self.is_on = await self.config.on() + self.is_on = None @commands.group() async def stealemoji(self, ctx: commands.Context): @@ -139,6 +139,9 @@ class StealEmoji(Cog): # print("Not a custom emoji") return + if self.is_on is None: + self.is_on = await self.config.on() + if not self.is_on: # print("Collecting is off") return