mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Fix not being able to send DMs
This commit is contained in:
parent
3df2438c79
commit
b137e06294
1 changed files with 5 additions and 1 deletions
|
@ -21,12 +21,16 @@ def get_prefix(bot, message):
|
||||||
return u.settings['prefixes'].get(message.guild.id, u.config['prefix'])
|
return u.settings['prefixes'].get(message.guild.id, u.config['prefix'])
|
||||||
return u.config['prefix']
|
return u.config['prefix']
|
||||||
|
|
||||||
|
intents = d.Intents.default()
|
||||||
|
intents.members = True
|
||||||
|
|
||||||
bot = cmds.Bot(
|
bot = cmds.Bot(
|
||||||
|
intents=intents,
|
||||||
command_prefix=get_prefix,
|
command_prefix=get_prefix,
|
||||||
self_bot=u.config['selfbot'],
|
self_bot=u.config['selfbot'],
|
||||||
description='Modufur - A booru bot with a side of management and automated tasking'
|
description='Modufur - A booru bot with a side of management and automated tasking'
|
||||||
'\nMade by @Myned#3985')
|
'\nMade by @Myned#3985'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|
Loading…
Reference in a new issue