1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Change reverse commands to continually type when processing

This commit is contained in:
Dylan Dizon 2019-09-22 13:58:56 -04:00 committed by GitHub
parent 02147ad95a
commit ea2de2c1d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(