mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-05 13:56:51 +01:00
Merge pull request #38 from r-Norge/feature/add_bot_intents
Upgrade to discord.py 1.7. Add intents.
This commit is contained in:
3 files changed
+6
-3
No files matched your search
@@ -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 @@
|
||||
bot_version = "0.1.8"
|
||||
bot_version = "0.1.9"
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
discord.py
|
||||
discord.py == 1.7.*
|
||||
git+https://github.com/Devoxin/Lavalink.py@dev
|
||||
asyncio
|
||||
pyyaml
|
||||
|
||||
Reference in new issue
Block a user