mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Commented out WIP autopost command
This commit is contained in:
parent
7652f276cc
commit
844afd8600
1 changed files with 23 additions and 23 deletions
|
@ -41,29 +41,29 @@ class MsG:
|
||||||
self.bot.loop.create_task(self._qualitify())
|
self.bot.loop.create_task(self._qualitify())
|
||||||
self.qualitifying = True
|
self.qualitifying = True
|
||||||
|
|
||||||
async def get_post(self, channel):
|
# async def get_post(self, channel):
|
||||||
post_request = await u.fetch('https://e621.net/post/index.json', json=True)
|
# post_request = await u.fetch('https://e621.net/post/index.json', json=True)
|
||||||
|
#
|
||||||
@commands.command()
|
# @commands.command()
|
||||||
async def auto_post(self, ctx):
|
# async def auto_post(self, ctx):
|
||||||
try:
|
# try:
|
||||||
if ctx.channel.id not in u.tasks['auto_post']:
|
# if ctx.channel.id not in u.tasks['auto_post']:
|
||||||
u.tasks['auto_post'].append(ctx.channel.id)
|
# u.tasks['auto_post'].append(ctx.channel.id)
|
||||||
u.dump(u.tasks, 'cogs/tasks.pkl')
|
# u.dump(u.tasks, 'cogs/tasks.pkl')
|
||||||
self.bot.loop.create_task(self.qualiqueue_for_qualitification(ctx.channel))
|
# self.bot.loop.create_task(self.qualiqueue_for_qualitification(ctx.channel))
|
||||||
if not self.qualitifying:
|
# if not self.qualitifying:
|
||||||
self.bot.loop.create_task(self._qualitify())
|
# self.bot.loop.create_task(self._qualitify())
|
||||||
self.qualitifying = True
|
# self.qualitifying = True
|
||||||
|
#
|
||||||
print('AUTO-POSTING : #{}'.format(ctx.channel.name))
|
# print('AUTO-POSTING : #{}'.format(ctx.channel.name))
|
||||||
await ctx.send('**Auto-posting all images in {}.**'.format(ctx.channel.mention), delete_after=5)
|
# await ctx.send('**Auto-posting all images in {}.**'.format(ctx.channel.mention), delete_after=5)
|
||||||
await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}')
|
# await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}')
|
||||||
else:
|
# else:
|
||||||
raise exc.Exists
|
# raise exc.Exists
|
||||||
|
#
|
||||||
except exc.Exists:
|
# except exc.Exists:
|
||||||
await ctx.send('**Already auto-posting in {}.** Type `stop` to stop.'.format(ctx.channel.mention), delete_after=10)
|
# await ctx.send('**Already auto-posting in {}.** Type `stop` to stop.'.format(ctx.channel.mention), delete_after=10)
|
||||||
await ctx.message.add_reaction('\N{CROSS MARK}')
|
# await ctx.message.add_reaction('\N{CROSS MARK}')
|
||||||
|
|
||||||
# Tag search
|
# Tag search
|
||||||
@commands.command(aliases=['rel'], brief='e621 Search for related tags', description='e621 | NSFW\nReturn related tags for a number of given tags', usage='[related|rel]')
|
@commands.command(aliases=['rel'], brief='e621 Search for related tags', description='e621 | NSFW\nReturn related tags for a number of given tags', usage='[related|rel]')
|
||||||
|
|
Loading…
Reference in a new issue