Commit f8414b34 authored by nanahira's avatar nanahira

fix compile

parent 85fe53e6
......@@ -27,22 +27,19 @@ app.plugin(ExtrasInDev);
// Target plugin
app.plugin(TargetPlugin, {
instances: [
{
name: 'yande',
weight: 1,
endpoint: 'https://yande.re/post.json',
pageLimit: 200,
isDefault: true,
},
{
});
app.plugin(TargetPlugin, {
name: 'konachan',
weight: 1,
endpoint: 'https://konachan.com/post.json',
pageLimit: 200,
isDefault: true,
},
],
});
app.start();
This diff is collapsed.
......@@ -28,11 +28,11 @@
},
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-picsource-yande",
"peerDependencies": {
"koishi": "^4.7.4",
"koishi-plugin-pics": "^9.3.3"
"koishi": "^4.7.5",
"koishi-plugin-pics": "^9.4.1"
},
"dependencies": {
"koishi-thirdeye": "^10.2.8"
"koishi-thirdeye": "^10.3.0"
},
"devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
......
// import 'source-map-support/register';
import { PicSourceYandePluginConfig } from './config';
import { DefinePlugin, Inject, MultiInstancePlugin } from 'koishi-thirdeye';
import { DefinePlugin, Inject, ParentPlugin } from 'koishi-thirdeye';
import { PicSourcePlugin } from 'koishi-plugin-pics';
import { Random, Quester } from 'koishi';
import { PicInfo } from './def';
export * from './config';
@DefinePlugin()
export class PicSourceYande extends PicSourcePlugin(
export default class PicSourceYande extends PicSourcePlugin(
PicSourceYandePluginConfig,
) {
@Inject(true)
......@@ -56,8 +56,3 @@ export class PicSourceYande extends PicSourcePlugin(
};
}
}
@DefinePlugin()
export default class PicSourceYandePlugin extends MultiInstancePlugin(
PicSourceYande,
) {}
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