Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,9 @@ async def save_messages(ctx, channel_id: int):
|
|
29 |
await ctx.send("Channel not found.")
|
30 |
return
|
31 |
|
32 |
-
messages =
|
|
|
|
|
33 |
|
34 |
with open("gradio-questions.json", 'w', encoding='utf-8') as file:
|
35 |
for message in messages:
|
|
|
29 |
await ctx.send("Channel not found.")
|
30 |
return
|
31 |
|
32 |
+
messages = []
|
33 |
+
async for message in channel.history(limit=None):
|
34 |
+
messages.append(message)
|
35 |
|
36 |
with open("gradio-questions.json", 'w', encoding='utf-8') as file:
|
37 |
for message in messages:
|