mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +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:
|
for attachment in ctx.message.attachments:
|
||||||
urls.append(attachment.url)
|
urls.append(attachment.url)
|
||||||
|
|
||||||
|
async with ctx.channel.typing():
|
||||||
for url in urls:
|
for url in urls:
|
||||||
try:
|
try:
|
||||||
await ctx.trigger_typing()
|
|
||||||
|
|
||||||
post, source, similarity = await scraper.get_post(url)
|
post, source, similarity = await scraper.get_post(url)
|
||||||
|
|
||||||
embed = d.Embed(
|
embed = d.Embed(
|
||||||
|
@ -471,11 +470,10 @@ class MsG(cmds.Cog):
|
||||||
raise exc.NotFound
|
raise exc.NotFound
|
||||||
|
|
||||||
n = 1
|
n = 1
|
||||||
|
async with ctx.channel.typing():
|
||||||
for message, urls in links.items():
|
for message, urls in links.items():
|
||||||
for url in urls:
|
for url in urls:
|
||||||
try:
|
try:
|
||||||
await ctx.trigger_typing()
|
|
||||||
|
|
||||||
post, source, similarity = await scraper.get_post(url)
|
post, source, similarity = await scraper.get_post(url)
|
||||||
|
|
||||||
embed = d.Embed(
|
embed = d.Embed(
|
||||||
|
@ -535,10 +533,9 @@ class MsG(cmds.Cog):
|
||||||
for attachment in message.attachments:
|
for attachment in message.attachments:
|
||||||
urls.append(attachment.url)
|
urls.append(attachment.url)
|
||||||
|
|
||||||
|
async with message.channel.typing():
|
||||||
for url in urls:
|
for url in urls:
|
||||||
try:
|
try:
|
||||||
await message.channel.trigger_typing()
|
|
||||||
|
|
||||||
post, source, similarity = await scraper.get_post(url)
|
post, source, similarity = await scraper.get_post(url)
|
||||||
|
|
||||||
embed = d.Embed(
|
embed = d.Embed(
|
||||||
|
|
Loading…
Reference in a new issue