From 001c05c38a113c4adad88ca3cf1a37a232a4ea7d Mon Sep 17 00:00:00 2001 From: Roy Du Date: Fri, 28 Oct 2022 14:19:09 -0700 Subject: [PATCH] Intent fix (#26) * fix: potential missing intent bug - Fixes discord.py 2.0 intent missing bug (hopefully) task: none * reverts weird working copy rename of run.py * Updates Discord.py to 2.0.1 Discord.py 2.0 was released and I didn't even notice! * removes discord.py from dockerfile --- .gitignore | 3 ++- requirements.txt | 1 + run.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b3edc77..402e6d4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__/ *.py[cod] -mount \ No newline at end of file +mount +.idea \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index da9c94b..30d9fda 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ PlexAPI==4.0.0 texttable python-dotenv requests +discord.py==2.0.1 diff --git a/run.py b/run.py index 4ea88e4..ff300fa 100644 --- a/run.py +++ b/run.py @@ -23,8 +23,9 @@ if switch == 0: class Bot(commands.Bot): def __init__(self) -> None: print("Initializing Discord bot") - intents = discord.Intents.default() + intents = discord.Intents.all() intents.members = True + intents.message_content = True super().__init__(command_prefix=".", intents=intents) async def on_ready(self):