tweak(sys_admin): Move presence under leo grp.

This commit is contained in:
2023-10-08 12:09:02 +03:00
parent 1b4cfd0453
commit 30b3e49811

View File

@@ -242,6 +242,7 @@ class PresenceCtrl(LionCog):
await self.data.init() await self.data.init()
if (leo_setting_cog := self.bot.get_cog('LeoSettings')) is not None: if (leo_setting_cog := self.bot.get_cog('LeoSettings')) is not None:
leo_setting_cog.bot_setting_groups.append(self.settings) leo_setting_cog.bot_setting_groups.append(self.settings)
self.crossload_group(self.leo_group, leo_setting_cog.leo_group)
await self.reload_presence() await self.reload_presence()
self.update_listeners() self.update_listeners()
@@ -372,7 +373,12 @@ class PresenceCtrl(LionCog):
"Unhandled exception occurred running client presence update loop. Closing loop." "Unhandled exception occurred running client presence update loop. Closing loop."
) )
@cmds.hybrid_command( @LionCog.placeholder_group
@cmds.hybrid_group('configure', with_app_command=False)
async def leo_group(self, ctx: LionContext):
...
@leo_group.command(
name="presence", name="presence",
description="Globally set the bot status and activity." description="Globally set the bot status and activity."
) )