Spaces:
Build error
Build error
lunarflu commited on
Commit ·
c16a8f7
1
Parent(s): ca54a4a
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ async def save_messages(ctx, channel_id: int):
|
|
| 35 |
|
| 36 |
with open("gradio-questions.json", 'w', encoding='utf-8') as file:
|
| 37 |
for message in messages:
|
| 38 |
-
file.write(f"{message.
|
| 39 |
|
| 40 |
await ctx.send(f"Messages from {channel.name} saved to gradio-questions.json")
|
| 41 |
|
|
|
|
| 35 |
|
| 36 |
with open("gradio-questions.json", 'w', encoding='utf-8') as file:
|
| 37 |
for message in messages:
|
| 38 |
+
file.write(f"{message.content}\n")
|
| 39 |
|
| 40 |
await ctx.send(f"Messages from {channel.name} saved to gradio-questions.json")
|
| 41 |
|