Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ async def on_message(message):
|
|
| 212 |
e = await message.reply(embed=embed)
|
| 213 |
print(imgp)
|
| 214 |
if imgp != "":
|
| 215 |
-
image =
|
| 216 |
image.save("image.png")
|
| 217 |
embed.set_footer(
|
| 218 |
text=
|
|
@@ -221,7 +221,7 @@ async def on_message(message):
|
|
| 221 |
file = discord.File("image.png", filename="image.png")
|
| 222 |
embed.set_image(url="attachment://image.png")
|
| 223 |
await e.edit(embed=embed, attachments=[file])
|
| 224 |
-
image =
|
| 225 |
embed.set_footer(
|
| 226 |
text=
|
| 227 |
"""Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
|
|
@@ -230,10 +230,10 @@ async def on_message(message):
|
|
| 230 |
file = discord.File("image.png", filename="image.png")
|
| 231 |
embed.set_image(url="attachment://image.png")
|
| 232 |
await e.edit(embed=embed, attachments=[file])
|
| 233 |
-
|
| 234 |
|
| 235 |
except Exception as e:
|
| 236 |
print(e)
|
|
|
|
| 237 |
|
| 238 |
token = os.environ["TOKEN"]
|
| 239 |
client.run(token)
|
|
|
|
| 212 |
e = await message.reply(embed=embed)
|
| 213 |
print(imgp)
|
| 214 |
if imgp != "":
|
| 215 |
+
image = tti(imgp)
|
| 216 |
image.save("image.png")
|
| 217 |
embed.set_footer(
|
| 218 |
text=
|
|
|
|
| 221 |
file = discord.File("image.png", filename="image.png")
|
| 222 |
embed.set_image(url="attachment://image.png")
|
| 223 |
await e.edit(embed=embed, attachments=[file])
|
| 224 |
+
image = iti("image.png")
|
| 225 |
embed.set_footer(
|
| 226 |
text=
|
| 227 |
"""Information or code generated by Lyre may not always be correct. Lyre was made by Araeyn."""
|
|
|
|
| 230 |
file = discord.File("image.png", filename="image.png")
|
| 231 |
embed.set_image(url="attachment://image.png")
|
| 232 |
await e.edit(embed=embed, attachments=[file])
|
|
|
|
| 233 |
|
| 234 |
except Exception as e:
|
| 235 |
print(e)
|
| 236 |
+
return 0
|
| 237 |
|
| 238 |
token = os.environ["TOKEN"]
|
| 239 |
client.run(token)
|