txlyre 1 năm trước cách đây
mục cha
commit
d068c54ddc
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      commands.py

+ 3 - 1
commands.py

@@ -426,7 +426,9 @@ async def run_handler(bot, event, command):
 
       return
 
-  text = remove_ansi_escapes(text)
+  text = remove_ansi_escapes(text).strip()
+  if not text:
+    text = '<empty>'
 
   await event.reply(f'```\n{text}```')