koishi-plugin-status
Advanced tools
Comparing version 2.0.0-alpha.43 to 2.0.0-beta.0
@@ -6,3 +6,5 @@ import { Context, App } from 'koishi-core'; | ||
} | ||
interface Bot { | ||
} | ||
declare module 'koishi-core/dist/sender' { | ||
interface CQSender { | ||
counter: number[]; | ||
@@ -9,0 +11,0 @@ } |
@@ -118,3 +118,3 @@ "use strict"; | ||
label: bot.label, | ||
code: bot.sender ? await bot.sender.getStatus().then(({ good }) => good ? StatusCode.GOOD : StatusCode.CQ_ERROR, () => StatusCode.NET_ERROR) : StatusCode.IDLE, | ||
code: bot._get ? await bot.getStatus().then(({ good }) => good ? StatusCode.GOOD : StatusCode.CQ_ERROR, () => StatusCode.NET_ERROR) : StatusCode.IDLE, | ||
rate: bot.counter.slice(1).reduce((prev, curr) => prev + curr, 0), | ||
@@ -121,0 +121,0 @@ }))), |
{ | ||
"name": "koishi-plugin-status", | ||
"description": "Show Status of Koishi", | ||
"version": "2.0.0-alpha.43", | ||
"version": "2.0.0-beta.0", | ||
"main": "dist/index.js", | ||
@@ -36,10 +36,10 @@ "typings": "dist/index.d.ts", | ||
"@types/cross-spawn": "^6.0.2", | ||
"koishi-plugin-mysql": "^2.0.0-alpha.40", | ||
"koishi-test-utils": "^4.0.0-alpha.40" | ||
"koishi-plugin-mysql": "^2.0.0-beta.0", | ||
"koishi-test-utils": "^4.0.0-beta.0" | ||
}, | ||
"dependencies": { | ||
"cross-spawn": "^7.0.3", | ||
"koishi-core": "^2.0.0-alpha.40", | ||
"koishi-core": "^2.0.0-beta.0", | ||
"koishi-utils": "^2.1.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
26505
361
Updatedkoishi-core@^2.0.0-beta.0