TheHamkerCat 5 年之前
父节点
当前提交
c37be5f214
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      wbb/modules/misc.py

+ 1 - 1
wbb/modules/misc.py

@@ -191,7 +191,7 @@ async def cheat(_, message):
         )
         if not data:
             return await m.edit("Found Literally Nothing!")
-        if data > 4090:
+        if len(data) > 4090:
             with open("cheat.txt", "w") as f:
                 f.write(data)
             return await message.reply_document(data)