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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,4 +2,5 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|
||||||
mount
|
mount
|
||||||
|
.idea
|
||||||
@@ -3,3 +3,4 @@ PlexAPI==4.0.0
|
|||||||
texttable
|
texttable
|
||||||
python-dotenv
|
python-dotenv
|
||||||
requests
|
requests
|
||||||
|
discord.py==2.0.1
|
||||||
|
|||||||
3
run.py
3
run.py
@@ -23,8 +23,9 @@ if switch == 0:
|
|||||||
class Bot(commands.Bot):
|
class Bot(commands.Bot):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
print("Initializing Discord bot")
|
print("Initializing Discord bot")
|
||||||
intents = discord.Intents.default()
|
intents = discord.Intents.all()
|
||||||
intents.members = True
|
intents.members = True
|
||||||
|
intents.message_content = True
|
||||||
super().__init__(command_prefix=".", intents=intents)
|
super().__init__(command_prefix=".", intents=intents)
|
||||||
|
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user