From f50f1f72ece829da86ca3eb754b5b3bf131f29b9 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Sun, 11 Oct 2020 15:45:32 -0400 Subject: [PATCH] fix long defs --- ubot/modules/urbandict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/modules/urbandict.py b/ubot/modules/urbandict.py index f264091..50541a6 100644 --- a/ubot/modules/urbandict.py +++ b/ubot/modules/urbandict.py @@ -43,7 +43,7 @@ async def urban_dict(event): file_io = io.BytesIO() file_io.write(bytes(definition.encode('utf-8'))) 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 await event.reply(definition)