mirror of
https://github.com/Nick80835/microbot
synced 2025-08-22 18:19:16 +00:00
fix long defs
This commit is contained in:
parent
17eaf52a93
commit
f50f1f72ec
@ -43,7 +43,7 @@ async def urban_dict(event):
|
|||||||
file_io = io.BytesIO()
|
file_io = io.BytesIO()
|
||||||
file_io.write(bytes(definition.encode('utf-8')))
|
file_io.write(bytes(definition.encode('utf-8')))
|
||||||
file_io.name = f"definition of {response_word['word']}.txt"
|
file_io.name = f"definition of {response_word['word']}.txt"
|
||||||
await event.reply(file=file_io, caption="Output was too large, sent it as a file.")
|
await event.reply("Output was too large, sent it as a file.", file=file_io)
|
||||||
return
|
return
|
||||||
|
|
||||||
await event.reply(definition)
|
await event.reply(definition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user