No await in __init__
This commit is contained in:
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…
x
Reference in New Issue
Block a user