added intents
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user