mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 14:47:29 +00:00
Finalized selfbot config options - need to rework everything else
This commit is contained in:
parent
b83f9cedd9
commit
678cbba249
1 changed files with 6 additions and 2 deletions
|
@ -58,7 +58,7 @@ 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']
|
||||||
|
|
||||||
bot = cmds.Bot(command_prefix=get_prefix, formatter=cmds.HelpFormatter(show_check_failure=True), description='Modumind - A booru bot with a side of management\n\nS for single command\nG for group command', help_attrs={'aliases': ['h']}, pm_help=None)
|
bot = cmds.Bot(command_prefix=get_prefix, self_bot=u.config['selfbot'], formatter=cmds.HelpFormatter(show_check_failure=True), description='Modumind - A booru bot with a side of management\n\nS for single command\nG for group command', help_attrs={'aliases': ['h']}, pm_help=None)
|
||||||
|
|
||||||
@bot.command(help='help', brief='brief', description='description', usage='usage')
|
@bot.command(help='help', brief='brief', description='description', usage='usage')
|
||||||
async def test(ctx):
|
async def test(ctx):
|
||||||
|
@ -101,8 +101,12 @@ async def on_ready():
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
|
if not u.config['selfbot']:
|
||||||
if message.author is not bot.user and not message.author.bot:
|
if message.author is not bot.user and not message.author.bot:
|
||||||
await bot.process_commands(message)
|
await bot.process_commands(message)
|
||||||
|
else:
|
||||||
|
if not message.author.bot:
|
||||||
|
await bot.process_commands(message)
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
@ -244,4 +248,4 @@ async def test(ctx):
|
||||||
# voice = await channel.connect()
|
# voice = await channel.connect()
|
||||||
# voice.play(d.AudioSource, after=lambda: after(voice))
|
# voice.play(d.AudioSource, after=lambda: after(voice))
|
||||||
|
|
||||||
bot.run(u.config['token'])
|
bot.run(u.config['token'], bot=not u.config['selfbot'])
|
||||||
|
|
Loading…
Reference in a new issue