Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
修复 无法正确显示。
Browse files Browse the repository at this point in the history
  • Loading branch information
yeying-xingchen committed May 24, 2024
1 parent 0f27032 commit ecfcce3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> [!WARN]
> [!WARNING]
> 此项目已停止维护,请前往yeying-xingchen/poetry-moment项目使用同款功能。
# 今日话语-TodayDiscourse
## 简介
Expand Down
16 changes: 2 additions & 14 deletions todaydiscourse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,11 @@ def post_discourse():
elif request.values.get("token") != token:
return "token 错误!", 403
log.warning("token 错误!")

def tools_start():
log.info("欢迎使用 TodayDiscourse 今日话语")
log.info("开发团队: XingchenOpenSource 星辰开源")
log.info("项目地址: https://github.com/XingchenOpenSource/TodayDiscourse")
log.info("官方文档: https://xingchenopensource.github.io/apis/todaydiscourse/")
config.get_config(os.getcwd())
server_port = config.get_config_port(os.getcwd())
server_host = config.get_config_host(os.getcwd())
log.info(f"🎉恭喜您!今日话语已在 http://localhost:{server_port} 上启动,请参阅官方文档以查看如何调用。")
app.run(host=server_host, port=server_port, threaded=True)

def start():
log.info("欢迎使用 TodayDiscourse 今日话语")
log.info("开发团队: XingchenOpenSource 星辰开源")
log.info("项目地址: https://github.com/XingchenOpenSource/TodayDiscourse")
log.info("官方文档: https://xingchenopensource.github.io/apis/todaydiscourse/")
log.info("开发团队: Xinghai-OSC 星海码队")
log.info("项目地址: https://github.com/xinghai-osc/todaydiscourse")
config.get_config(os.getcwd())
server_port = config.get_config_port(os.getcwd())
server_host = config.get_config_host(os.getcwd())
Expand Down

0 comments on commit ecfcce3

Please sign in to comment.