diff --git a/CHANGELOG.md b/CHANGELOG.md index 3892613..f92e779 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [unreleased] +- Bump discord.py to 1.5.0, use Intents + ## [0.2.1] - `announce` command diff --git a/init.py b/init.py index eb89010..7818c03 100644 --- a/init.py +++ b/init.py @@ -3,15 +3,30 @@ import traceback from datetime import datetime +import discord from discord.ext import commands from core import wormcog, output, checks config = json.load(open("config.json")) -bot = commands.Bot(command_prefix=config["prefix"], help_command=None) -event = output.Event(bot) git_repo = git.Repo(search_parent_directories=True) +intents = discord.Intents.none() +intents.guilds = True # Needed for on_guild_join() and Info cog commands +intents.members = True +# FIXME Do we need member cache? We only use it for whois and tag translation +intents.emojis = True # Needed to translate unavailable emojis +intents.messages = True # Core functionality + +bot = commands.Bot( + command_prefix=config["prefix"], + help_command=None, + allowed_mentions=discord.AllowedMentions(roles=False, everyone=False, users=True), + intents=intents, +) + +event = output.Event(bot) + ## ## EVENTS ## diff --git a/requirements.txt b/requirements.txt index af95a6b..06ac106 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -discord.py >= 1.4.1 +discord.py >= 1.5.0 GitPython >= 3.1.2 redis >= 3.5.3