Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Bump discord.py to 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sinus-x committed Oct 4, 2020
1 parent a7e7fbf commit dacc69e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [unreleased]

- Bump discord.py to 1.5.0, use Intents

## [0.2.1]

- `announce` command
Expand Down
19 changes: 17 additions & 2 deletions init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
discord.py >= 1.4.1
discord.py >= 1.5.0
GitPython >= 3.1.2
redis >= 3.5.3

0 comments on commit dacc69e

Please sign in to comment.