Compare commits
2 Commits
0195706e92
...
7b64f6938b
Author | SHA1 | Date | |
---|---|---|---|
7b64f6938b
|
|||
c54586940e
|
@@ -92,6 +92,8 @@ class Data(commands.Cog):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Temporary file must be written synchronously,
|
||||||
|
# otherwise it will not be there when ctx.respond() is be called
|
||||||
json_write(users, Path(f"tmp/{uuid}"))
|
json_write(users, Path(f"tmp/{uuid}"))
|
||||||
|
|
||||||
await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))
|
await ctx.respond(file=File(Path(f"tmp/{uuid}"), filename="users.json"))
|
||||||
|
@@ -6,5 +6,6 @@ aiofiles~=24.1.0
|
|||||||
apscheduler>=3.10.0
|
apscheduler>=3.10.0
|
||||||
async_pymongo==0.1.11
|
async_pymongo==0.1.11
|
||||||
libbot[speed,pycord]==4.0.0
|
libbot[speed,pycord]==4.0.0
|
||||||
|
typing-extensions~=4.12.2
|
||||||
ujson~=5.10.0
|
ujson~=5.10.0
|
||||||
WaifuPicsPython==0.2.0
|
WaifuPicsPython==0.2.0
|
Reference in New Issue
Block a user