mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Change reverse commands to continually type when processing
This commit is contained in:
parent
02147ad95a
commit
ea2de2c1d7
1 changed files with 78 additions and 81 deletions
|
@ -397,10 +397,9 @@ class MsG(cmds.Cog):
|
|||
for attachment in ctx.message.attachments:
|
||||
urls.append(attachment.url)
|
||||
|
||||
async with ctx.channel.typing():
|
||||
for url in urls:
|
||||
try:
|
||||
await ctx.trigger_typing()
|
||||
|
||||
post, source, similarity = await scraper.get_post(url)
|
||||
|
||||
embed = d.Embed(
|
||||
|
@ -471,11 +470,10 @@ class MsG(cmds.Cog):
|
|||
raise exc.NotFound
|
||||
|
||||
n = 1
|
||||
async with ctx.channel.typing():
|
||||
for message, urls in links.items():
|
||||
for url in urls:
|
||||
try:
|
||||
await ctx.trigger_typing()
|
||||
|
||||
post, source, similarity = await scraper.get_post(url)
|
||||
|
||||
embed = d.Embed(
|
||||
|
@ -535,10 +533,9 @@ class MsG(cmds.Cog):
|
|||
for attachment in message.attachments:
|
||||
urls.append(attachment.url)
|
||||
|
||||
async with message.channel.typing():
|
||||
for url in urls:
|
||||
try:
|
||||
await message.channel.trigger_typing()
|
||||
|
||||
post, source, similarity = await scraper.get_post(url)
|
||||
|
||||
embed = d.Embed(
|
||||
|
|
Loading…
Reference in a new issue