Skip to content

Commit

Permalink
bot: remove message_content privileged intent
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Oct 9, 2022
1 parent 7a952c0 commit ad9cb34
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ You can directly post an issue in this repo, be sure to use the template!

The bot comes as a [poetry](https://python-poetry.org/) Python package and can run using Docker.

You must first setup a Discord bot with the following intents enabled:

- Server members intent
- Message content intent (will be removed at a later date)
You must first setup a Discord bot. **No privileged intents are required!**

### With Docker (recommended)

Expand Down
2 changes: 1 addition & 1 deletion ballsdex/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.0"
__version__ = "1.1.1"
8 changes: 7 additions & 1 deletion ballsdex/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ class BallsDexBot(commands.Bot):
"""

def __init__(self, command_prefix: str, dev: bool = False, **options):
intents = discord.Intents(guilds=True, guild_messages=True, message_content=True)
# An explaination for the used intents
# guilds: needed for basically anything, the bot needs to know what guilds it has
# and accordingly enable automatic spawning in the enabled ones
# guild_messages: spawning is based on messages sent, content is not necessary
# emojis_and_stickers: DB holds emoji IDs for the balls which are fetched from 3 servers
intents = discord.Intents(guilds=True, guild_messages=True, emojis_and_stickers=True)

super().__init__(command_prefix, intents=intents, tree_cls=CommandTree, **options)
self._shutdown = 0
self.dev = dev
Expand Down

0 comments on commit ad9cb34

Please sign in to comment.