Merge pull request #38 from r-Norge/feature/add_bot_intents

Upgrade to discord.py 1.7. Add intents.
This commit is contained in:
Ev-1 authored and GitHub committed 2021-04-04 18:10:25 +02:00
commit def5bb0d0e
3 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -1,6 +1,7 @@
# Discord Packages
import discord
from discord.ext import commands
from discord.flags import Intents, MemberCacheFlags
import codecs
import os
@@ -42,7 +43,9 @@ def _get_prefix(bot, message):
class Bot(commands.Bot):
def __init__(self, datadir, debug: bool = False):
super().__init__(command_prefix=_get_prefix,
description=conf["bot"]["description"])
description=conf["bot"]["description"],
intents=Intents(members=True, presences=True, voice_states=True),
member_cache_flags=MemberCacheFlags().all())
self.settings = Settings(datadir, **conf['default server settings'])
self.APIkeys = conf.get('APIkeys', {})
+1 -1
View File
@@ -1 +1 @@
bot_version = "0.1.8"
bot_version = "0.1.9"
+1 -1
View File
@@ -1,4 +1,4 @@
discord.py
discord.py == 1.7.*
git+https://github.com/Devoxin/Lavalink.py@dev
asyncio
pyyaml