Skip to content

Commit

Permalink
feat(status): show bot.platform in status output, fix #236
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 20, 2023
1 parent e3a474a commit c39a885
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FileWriter } from './file'
import { throttle } from 'throttle-debounce'
import zhCN from './locales/zh-CN.yml'

declare module '@koishijs/plugin-console' {
declare module '@koishijs/console' {
namespace Console {
interface Services {
logs: DataService<Logger.Record[]>
Expand Down
2 changes: 1 addition & 1 deletion plugins/status/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-status",
"description": "Status view for Koishi",
"version": "7.3.0",
"version": "7.4.2",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion plugins/status/src/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commands:
2: 正在连接
4: 正在重连
3: 正在断开
bot: <p>{user.name}:<i18n path={"commands.status.messages.status." + status}/></p>
bot: <p>[{user.platform}] {user.name}:<i18n path={"commands.status.messages.status." + status}/></p>
epilog: |-
==========
CPU 使用率:{ (cpu[0] * 100).toFixed() }% / { (cpu[1] * 100).toFixed() }%
Expand Down

0 comments on commit c39a885

Please sign in to comment.