mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
WIP fix for double error with NSFW checkfail
This commit is contained in:
parent
16ff15b65d
commit
a553efb0b6
1 changed files with 10 additions and 10 deletions
|
@ -930,11 +930,11 @@ class MsG:
|
||||||
|
|
||||||
await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}')
|
await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}')
|
||||||
|
|
||||||
@e621_paginator.error
|
# @e621_paginator.error
|
||||||
async def e621_paginator_error(self, ctx, error):
|
# async def e621_paginator_error(self, ctx, error):
|
||||||
if isinstance(error, errext.CheckFailure):
|
# if isinstance(error, exc.NSFW):
|
||||||
await ctx.send('\N{NO ENTRY} {} **is not an NSFW channel**'.format(ctx.channel.mention), delete_after=10)
|
# await ctx.send('\N{NO ENTRY} {} **is not an NSFW channel**'.format(ctx.channel.mention), delete_after=10)
|
||||||
return await ctx.message.add_reaction('\N{NO ENTRY}')
|
# await ctx.message.add_reaction('\N{NO ENTRY}')
|
||||||
|
|
||||||
@commands.command(name='e926page', aliases=['e926p', 'e9p', '9p'])
|
@commands.command(name='e926page', aliases=['e926p', 'e9p', '9p'])
|
||||||
@checks.del_ctx()
|
@checks.del_ctx()
|
||||||
|
@ -1144,11 +1144,11 @@ class MsG:
|
||||||
# tools.command_dict.setdefault(str(ctx.author.id), {}).update(
|
# tools.command_dict.setdefault(str(ctx.author.id), {}).update(
|
||||||
# {'command': ctx.command, 'args': ctx.args})
|
# {'command': ctx.command, 'args': ctx.args})
|
||||||
|
|
||||||
@e621.error
|
# @e621.error
|
||||||
async def e621_error(self, ctx, error):
|
# async def e621_error(self, ctx, error):
|
||||||
if isinstance(error, errext.CheckFailure):
|
# if isinstance(error, exc.NSFW):
|
||||||
await ctx.send('\N{NO ENTRY} {} **is not an NSFW channel**'.format(ctx.channel.mention), delete_after=10)
|
# await ctx.send('\N{NO ENTRY} {} **is not an NSFW channel**'.format(ctx.channel.mention), delete_after=10)
|
||||||
return await ctx.message.add_reaction('\N{NO ENTRY}')
|
# await ctx.message.add_reaction('\N{NO ENTRY}')
|
||||||
|
|
||||||
# Searches for and returns images from e926.net given tags when not blacklisted
|
# Searches for and returns images from e926.net given tags when not blacklisted
|
||||||
@commands.command(aliases=['e9', '9'], brief='e926 | SFW', description='e926 | SFW\nTag-based search for e926.net\n\nYou can only search 5 tags and 6 images at once for now.\ne9 [tags...] ([# of images])')
|
@commands.command(aliases=['e9', '9'], brief='e926 | SFW', description='e926 | SFW\nTag-based search for e926.net\n\nYou can only search 5 tags and 6 images at once for now.\ne9 [tags...] ([# of images])')
|
||||||
|
|
Loading…
Reference in a new issue