koishi-plugin-status
Advanced tools
Comparing version 2.0.0-beta.9 to 2.0.0-beta.10
@@ -12,3 +12,3 @@ import { Context, App } from 'koishi-core'; | ||
} | ||
export interface StatusOptions { | ||
export interface Config { | ||
} | ||
@@ -32,11 +32,5 @@ export interface Rate { | ||
} | ||
declare type StatusModifier = (this: App, status: Status, config: StatusOptions) => void | Promise<void>; | ||
declare type StatusModifier = (this: App, status: Status, config: Config) => void | Promise<void>; | ||
export declare function extendStatus(callback: StatusModifier): void; | ||
export declare enum StatusCode { | ||
GOOD = 0, | ||
IDLE = 1, | ||
CQ_ERROR = 2, | ||
NET_ERROR = 3 | ||
} | ||
export declare const name = "status"; | ||
export declare function apply(ctx: Context, config: StatusOptions): void; | ||
export declare function apply(ctx: Context, config: Config): void; |
@@ -13,3 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.apply = exports.name = exports.StatusCode = exports.extendStatus = void 0; | ||
exports.apply = exports.name = exports.extendStatus = void 0; | ||
const os_1 = require("os"); | ||
@@ -56,9 +56,2 @@ __exportStar(require("./database"), exports); | ||
const startTime = Date.now(); | ||
var StatusCode; | ||
(function (StatusCode) { | ||
StatusCode[StatusCode["GOOD"] = 0] = "GOOD"; | ||
StatusCode[StatusCode["IDLE"] = 1] = "IDLE"; | ||
StatusCode[StatusCode["CQ_ERROR"] = 2] = "CQ_ERROR"; | ||
StatusCode[StatusCode["NET_ERROR"] = 3] = "NET_ERROR"; | ||
})(StatusCode = exports.StatusCode || (exports.StatusCode = {})); | ||
exports.name = 'status'; | ||
@@ -65,0 +58,0 @@ function apply(ctx, config) { |
{ | ||
"name": "koishi-plugin-status", | ||
"description": "Show Status of Koishi", | ||
"version": "2.0.0-beta.9", | ||
"version": "2.0.0-beta.10", | ||
"main": "dist/index.js", | ||
@@ -36,6 +36,6 @@ "typings": "dist/index.d.ts", | ||
"@types/cross-spawn": "^6.0.2", | ||
"koishi-core": "^2.0.0-beta.12", | ||
"koishi-core": "^2.0.0-beta.14", | ||
"koishi-plugin-mongo": "^1.0.0-beta.3", | ||
"koishi-plugin-mysql": "^2.0.0-beta.6", | ||
"koishi-test-utils": "^4.0.0-beta.5" | ||
"koishi-test-utils": "^4.0.0-beta.6" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
27787
392