mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Merge branch 'dev'
This commit is contained in:
commit
9c93cac4f8
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