Skip to content
Snippets Groups Projects
Unverified Commit 0f9f46d1 authored by Dennis Klein's avatar Dennis Klein Committed by GitHub
Browse files

Upgrade discord.py to v1.5

Update fernuni-bot.py to use intents, which are required for discord.py v1.5
parents f960067e ce39fad7
Branches
No related tags found
No related merge requests found
......@@ -25,7 +25,9 @@ DATE_TIME_FORMAT = os.getenv("DISCORD_DATE_TIME_FORMAT")
CATEGORY_LERNGRUPPEN = os.getenv("DISCORD_CATEGORY_LERNGRUPPEN")
PIN_EMOJI = "📌"
bot = commands.Bot(command_prefix='!', help_command=None, activity=discord.Game(ACTIVITY), owner_id=OWNER)
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', help_command=None, activity=discord.Game(ACTIVITY), owner_id=OWNER, intents=intents)
appointments_cog = AppointmentsCog(bot, DATE_TIME_FORMAT, APPOINTMENTS_FILE)
text_commands_cog = TextCommandsCog(bot, TEXT_COMMANDS_FILE)
bot.add_cog(appointments_cog)
......
aiohttp==3.6.2
aiohttp==3.6.3
async-timeout==3.0.1
attrs==19.3.0
attrs==20.2.0
chardet==3.0.4
discord==1.0.1
discord.py==1.3.4
idna==2.9
multidict==4.7.5
python-dotenv==0.12.0
discord.py==1.5.0
idna==2.10
multidict==5.0.0
python-dotenv==0.14.0
websockets==8.1
yarl==1.4.2
yarl==1.6.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment