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
This commit is contained in:
Roy Du
2022-10-28 14:19:09 -07:00
committed by GitHub
parent b9795a0d16
commit 001c05c38a
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@
__pycache__/
*.py[cod]
mount
mount
.idea

View File

@@ -3,3 +3,4 @@ PlexAPI==4.0.0
texttable
python-dotenv
requests
discord.py==2.0.1

3
run.py
View File

@@ -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):