From f571f83c24a9f34286d0ee1981a542a6bf6f793b Mon Sep 17 00:00:00 2001 From: Mihit Date: Wed, 9 Apr 2025 17:06:38 +1000 Subject: [PATCH] added intents --- DiscordBot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DiscordBot.py b/DiscordBot.py index ff3807e..c472351 100644 --- a/DiscordBot.py +++ b/DiscordBot.py @@ -32,6 +32,7 @@ copyparty_token = os.getenv('COPYPARTY_TOKEN') intents = discord.Intents.none() intents.messages = True intents.message_content = True +intents.guilds = True bot = discord.Bot(intents=intents) def pixelget(url: str): @@ -151,8 +152,9 @@ async def on_message(message): update_rss_feed() return -def main(): +async def main(): bot.run(TOKEN) + messagechannel = await bot.fetch_channel(862039084683624468) if __name__ == '__main__': main() \ No newline at end of file