Skip to content

Commit

Permalink
update discord.py
Browse files Browse the repository at this point in the history
now `discord.py>=2.0.0` is required, and message content intent in the discord application dashboard too
  • Loading branch information
Fallen-Breath committed Sep 10, 2022
1 parent 2032621 commit ce56473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Extra configure fields (compared to [CLI client](#cli-client))
Extra requirements (also listed in `/chatbridge/impl/discord/requirements.txt`):

```
discord.py
discord.py>=2.0.0
```

Extra configure fields (compared to [CLI client](#cli-client))
Expand Down
5 changes: 4 additions & 1 deletion chatbridge/impl/discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def format_message_text(msg):

def create_bot() -> DiscordBot:
config = stored.config
bot = DiscordBot(config.command_prefix)

intents = discord.Intents.default()
intents.message_content = True
bot = DiscordBot(config.command_prefix, intents=intents)

# noinspection PyShadowingBuiltins
@bot.command()
Expand Down

0 comments on commit ce56473

Please sign in to comment.