Merge pull request #73 from StudyLions/rewrite

Minor bugfixes and adjustment for new dpy.
This commit is contained in:
Interitio
2024-07-11 15:38:01 +10:00
committed by GitHub
7 changed files with 9 additions and 9 deletions

View File

@@ -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')

View File

@@ -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

View File

@@ -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]