From 37ea0c7eee6404a3722f0ecce01c627473503bb8 Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 16 May 2024 23:52:12 +0000 Subject: [PATCH] log joined guilds --- nightly/nightly/bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nightly/nightly/bot.py b/nightly/nightly/bot.py index 38991a9..1a8d98f 100644 --- a/nightly/nightly/bot.py +++ b/nightly/nightly/bot.py @@ -9,3 +9,8 @@ class NightlyBot(commands.Bot): strip_after_prefix=True, intents=discord.Intents(message_content=True, guild_messages=True, guild_reactions=True, guilds=True), ) + + @self.event + async def on_ready(): + async for guild in self.fetch_guilds(): + print("in", guild)