Commit a9ce85fb authored by nanahira's avatar nanahira

bump

parent 3299d585
......@@ -13,10 +13,11 @@ const app = new Context({
});
// Console and sandbox
app.plugin(SandboxPlugin);
// app.plugin(SandboxPlugin);
app.plugin(ConsolePlugin, {
open: false,
});
app.plugin(SandboxPlugin);
// Some services
// app.plugin(CachePlugin);
......
This diff is collapsed.
......@@ -28,15 +28,15 @@
},
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-greeting",
"dependencies": {
"koishi-thirdeye": "^11.0.12",
"koishi-thirdeye": "^11.1.0",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"node-schedule": "^2.1.0"
},
"devDependencies": {
"@koishijs/plugin-console": "^4.1.1",
"@koishijs/plugin-database-memory": "^1.4.1",
"@koishijs/plugin-sandbox": "^2.0.1",
"@koishijs/plugin-console": "^4.5.4",
"@koishijs/plugin-database-memory": "^1.5.0",
"@koishijs/plugin-sandbox": "^2.2.9",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.8",
......@@ -59,7 +59,7 @@
"ws": "^8.4.2"
},
"peerDependencies": {
"koishi": "^4.8.7"
"koishi": "^4.9.1"
},
"jest": {
"moduleFileExtensions": [
......
......@@ -194,7 +194,7 @@ export class Instance {
})
rules: Rule[];
async run(list:Bot[]) {
async run(list: Bot[]) {
const bot = this.getBot(list);
if (bot?.status !== 'online') {
logger.info(`Skipping job for ${this.from} because it's not online.`);
......@@ -235,7 +235,7 @@ export class GreetingPluginConfig {
@DefineSchema({ description: '实例列表。', type: Instance })
instances: Instance[];
async runInstances(list:Bot[], instances = this.instances) {
async runInstances(list: Bot[], instances = this.instances) {
const failedInstances = _.compact(
await Promise.all(instances.map((instance) => instance.run(list))),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment