TheHamkerCat 5 년 전
부모
커밋
7b9a38b7f7
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      wbb/modules/sudoers.py

+ 1 - 1
wbb/modules/sudoers.py

@@ -273,5 +273,5 @@ async def broadcast_message(_, message):
 
 @app.on_message(filters.command("update") & filters.user(SUDOERS))
 async def update_restart(_, message):
-    await message.reply_text(subprocess.check_output(["git", "pull"]).decode("UTF-8"))
+    await message.reply_text(f'```{subprocess.check_output(["git", "pull"]).decode("UTF-8")}```')
     os.execvp("python3", ["python3", "-m", "wbb"])