12 lines
452 B
Python
12 lines
452 B
Python
from redbot.core import commands # isort:skip
|
|
from redbot.core.bot import Red # isort:skip
|
|
|
|
|
|
class DashboardIntegration:
|
|
bot: Red
|
|
|
|
@commands.Cog.listener()
|
|
async def on_dashboard_cog_add(self, dashboard_cog: commands.Cog) -> None:
|
|
if hasattr(self, "settings") and hasattr(self.settings, "commands_added"):
|
|
await self.settings.commands_added.wait()
|
|
dashboard_cog.rpc.third_parties_handler.add_third_party(self)
|