Merge pull request #269 from miaowware/newcrap

Made bot work with new Intents system + only cache needed things
This commit is contained in:
0x5c 2020-10-06 19:01:46 -04:00 committed by GitHub
commit c9510ad9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View File

@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Changed
- Bumped discord.py to 1.5.0
## [2.4.0] - 2020-09-27

View File

@ -1,3 +1,3 @@
-r requirements.txt
flake8
discord.py-stubs
discord.py-stubs==1.5.0

12
main.py
View File

@ -44,9 +44,21 @@ debug_mode = opt.debug # Separate assignement in-case we define an override (te
loop = asyncio.get_event_loop()
connector = loop.run_until_complete(conn.new_connector())
# Defining the intents
intents = discord.Intents.default()
# We don't need those
intents.bans = False
intents.emojis = False
intents.integrations = False
intents.webhooks = False
intents.invites = False
intents.voice_states = False
intents.typing = False
bot = commands.Bot(command_prefix=opt.prefix,
case_insensitive=True,
description=info.description, help_command=commands.MinimalHelpCommand(),
intents=intents,
loop=loop,
connector=connector)

View File

@ -1,4 +1,4 @@
discord.py==1.3.4
discord.py==1.5.0
ctyparser==2.0.0.post1
beautifulsoup4==4.9.1
lxml==4.5.2