Minor bugfixes and adjustment for new dpy.
This commit is contained in:
@@ -101,8 +101,9 @@ class Shopping(LionCog):
|
||||
self.active_cogs.append(shop_cog)
|
||||
|
||||
async def cog_unload(self):
|
||||
for shop in self.shops:
|
||||
await shop.unload()
|
||||
# for shop in self.shops:
|
||||
# await shop.unload()
|
||||
pass
|
||||
|
||||
@cmds.hybrid_group(
|
||||
name=_p('group:editshop', 'editshop')
|
||||
|
||||
@@ -20,7 +20,7 @@ class SponsorCog(LionCog):
|
||||
def __init__(self, bot: LionBot):
|
||||
self.bot = bot
|
||||
self.data: SponsorData = bot.db.load_registry(SponsorData())
|
||||
self.settings = SponsorSettings
|
||||
self.settings = SponsorSettings()
|
||||
|
||||
self.whitelisted = self.settings.Whitelist._cache
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ class PresenceCtrl(LionCog):
|
||||
async def reload_presence(self) -> None:
|
||||
# Reload the presence information from the appconfig table
|
||||
# TODO: When botconfig is done, these should load from settings, instead of directly from data
|
||||
self.data.AppPresence._cache_.pop(appname, None)
|
||||
self.data.AppPresence._cache_.pop((appname,), None)
|
||||
self.activity_type = (await self.settings.PresenceType.get(appname)).value.value[2]
|
||||
self.activity_format = (await self.settings.PresenceName.get(appname)).value
|
||||
self.status = (await self.settings.PresenceStatus.get(appname)).value.value[2]
|
||||
|
||||
Reference in New Issue
Block a user