Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,9 @@ async def save_messages(ctx, channel_id: int):
|
|
39 |
|
40 |
await ctx.send(f"Messages from {channel.name} saved to gradio-questions.json")
|
41 |
|
42 |
-
|
|
|
|
|
43 |
|
44 |
|
45 |
""""""
|
|
|
39 |
|
40 |
await ctx.send(f"Messages from {channel.name} saved to gradio-questions.json")
|
41 |
|
42 |
+
with open("gradio-questions.json", 'rb') as file:
|
43 |
+
discord_file = discord.File(file)
|
44 |
+
await ctx.send(file=discord_file)
|
45 |
|
46 |
|
47 |
""""""
|