Socket
Socket
Sign inDemoInstall

koishi-plugin-esostatus

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-esostatus - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

20

lib/index.js

@@ -17,4 +17,5 @@ "use strict";

let status;
var switcher;
function apply(ctx, config) {
setInterval(async () => {
switcher = setInterval(async () => {
const statusNow = await fetchServerStatus();

@@ -44,3 +45,4 @@ if (status != statusNow) {

ctx.command('服务器状态')
.action(async ({ session }) => {
.action(async () => {
console.info(switcher);
console.info(status);

@@ -65,2 +67,16 @@ const statusPic = await ctx.canvas.render(512, 50, (ctx) => {

});
ctx.command('关闭服务器查询')
.action(async ({ session }) => {
if (config.管理id != session.userId)
return '你没有权限';
console.info(switcher);
if (switcher) {
clearInterval(switcher);
switcher = null;
return '关闭成功';
}
else {
return '计时器未运行';
}
});
}

@@ -67,0 +83,0 @@ exports.apply = apply;

2

package.json
{
"name": "koishi-plugin-esostatus",
"description": "eso服务器状态查询",
"version": "0.0.3",
"version": "0.0.4",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc