mirror of
https://github.com/miaowware/qrm2.git
synced 2024-09-27 14:26:35 -04:00
Merge pull request #269 from miaowware/newcrap
Made bot work with new Intents system + only cache needed things
This commit is contained in:
commit
c9510ad9b9
@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- Bumped discord.py to 1.5.0
|
||||||
|
|
||||||
|
|
||||||
## [2.4.0] - 2020-09-27
|
## [2.4.0] - 2020-09-27
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
flake8
|
flake8
|
||||||
discord.py-stubs
|
discord.py-stubs==1.5.0
|
||||||
|
12
main.py
12
main.py
@ -44,9 +44,21 @@ debug_mode = opt.debug # Separate assignement in-case we define an override (te
|
|||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
connector = loop.run_until_complete(conn.new_connector())
|
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,
|
bot = commands.Bot(command_prefix=opt.prefix,
|
||||||
case_insensitive=True,
|
case_insensitive=True,
|
||||||
description=info.description, help_command=commands.MinimalHelpCommand(),
|
description=info.description, help_command=commands.MinimalHelpCommand(),
|
||||||
|
intents=intents,
|
||||||
loop=loop,
|
loop=loop,
|
||||||
connector=connector)
|
connector=connector)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
discord.py==1.3.4
|
discord.py==1.5.0
|
||||||
ctyparser==2.0.0.post1
|
ctyparser==2.0.0.post1
|
||||||
beautifulsoup4==4.9.1
|
beautifulsoup4==4.9.1
|
||||||
lxml==4.5.2
|
lxml==4.5.2
|
||||||
|
Loading…
Reference in New Issue
Block a user