Use intents
This commit is contained in:
parent
33c79ab097
commit
7ca221adb3
4
bot.py
4
bot.py
|
@ -11,6 +11,9 @@ os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
|
intent = discord.Intents.all()
|
||||||
|
intent.presences = False
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
"command_prefix": utils.command_prefix,
|
"command_prefix": utils.command_prefix,
|
||||||
"description": utils.bot_description,
|
"description": utils.bot_description,
|
||||||
|
@ -18,6 +21,7 @@ opts = {
|
||||||
"command_not_found": "",
|
"command_not_found": "",
|
||||||
"activity": discord.Activity(name=utils.default_status, type=0),
|
"activity": discord.Activity(name=utils.default_status, type=0),
|
||||||
"allowed_mentions": discord.AllowedMentions(everyone=False),
|
"allowed_mentions": discord.AllowedMentions(everyone=False),
|
||||||
|
"intents": intent,
|
||||||
}
|
}
|
||||||
|
|
||||||
bot = commands.AutoShardedBot(**opts)
|
bot = commands.AutoShardedBot(**opts)
|
||||||
|
|
Loading…
Reference in a new issue