docs: 添加了命令手册

This commit is contained in:
远野千束 2024-03-27 00:15:12 +08:00
parent 0bdd2d9b1d
commit e22fadcf44

View File

@ -49,11 +49,9 @@ async def _(bot: T_Bot, event: T_MessageEvent):
break break
except Exception as e: except Exception as e:
print(f"Pull from {origin} failed: {e}") print(f"Pull from {origin} failed: {e}")
logs = repo.git.log('--pretty=format:%H %s') logs = repo.index.diff()
reply = "Liteyuki updated!\n" reply = "Liteyuki updated!\n"
reply += f"```\n{logs}\n```" reply += f"```\n{logs}\n```"
print(list(repo.iter_commits()))
await send_markdown(reply, bot, event=event, at_sender=False) await send_markdown(reply, bot, event=event, at_sender=False)