Edit message properly
This commit is contained in:
@@ -60,10 +60,10 @@ async def summarize(
|
|||||||
await interaction.followup.send(f"Unable to find article: {article}")
|
await interaction.followup.send(f"Unable to find article: {article}")
|
||||||
return
|
return
|
||||||
|
|
||||||
await interaction.followup.send(f"""Article Found: {resp['ref']}
|
msg = await interaction.followup.send(f"""Article Found: {resp['ref']}
|
||||||
Parsing PDF...""")
|
Parsing PDF...""")
|
||||||
pdf = await getPDF(resp['pdf'])
|
pdf = await getPDF(resp['pdf'])
|
||||||
await interaction.followup.edit_message(f"""Article Found: {resp['ref']}
|
await msg.edit(f"""Article Found: {resp['ref']}
|
||||||
```
|
```
|
||||||
{pdf[:1000]}
|
{pdf[:1000]}
|
||||||
```""")
|
```""")
|
||||||
|
|||||||
Reference in New Issue
Block a user