added intents
This commit is contained in:
@@ -32,6 +32,7 @@ copyparty_token = os.getenv('COPYPARTY_TOKEN')
|
|||||||
intents = discord.Intents.none()
|
intents = discord.Intents.none()
|
||||||
intents.messages = True
|
intents.messages = True
|
||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
intents.guilds = True
|
||||||
bot = discord.Bot(intents=intents)
|
bot = discord.Bot(intents=intents)
|
||||||
|
|
||||||
def pixelget(url: str):
|
def pixelget(url: str):
|
||||||
@@ -151,8 +152,9 @@ async def on_message(message):
|
|||||||
update_rss_feed()
|
update_rss_feed()
|
||||||
return
|
return
|
||||||
|
|
||||||
def main():
|
async def main():
|
||||||
bot.run(TOKEN)
|
bot.run(TOKEN)
|
||||||
|
messagechannel = await bot.fetch_channel(862039084683624468)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
Reference in New Issue
Block a user