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