Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed Jun 20, 2024
1 parent eaed393 commit 387c3a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/default_config/bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ log_object: true
url: http://localhost:2536
# 服务器端口
port: 2536
# 服务器缺省跳转地址
redirect: https://github.com/TimeRainStarSky/Yunzai

# 自动更新时间
update_time: 1440
Expand Down
2 changes: 1 addition & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class Yunzai extends EventEmitter {
await PluginsLoader.load()
await ListenerLoader.load()

this.express.use(req => req.res.redirect("https://github.com/TimeRainStarSky/Yunzai"))
this.express.use(req => req.res.redirect(cfg.bot.redirect))
this.makeLog("info", `连接地址:${logger.blue(`${cfg.bot.url.replace(/^http/, "ws")}/`)}${logger.cyan(`[${Object.keys(this.wsf)}]`)}`, "WebSocket")
this.emit("online", this)
}
Expand Down

0 comments on commit 387c3a9

Please sign in to comment.