Commit 5f5a082d authored by nanahira's avatar nanahira

add http settings

parent 2b3c2111
This diff is collapsed.
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
}, },
"homepage": "https://github.com/koishijs/koishi-plugin-picsource-lolicon", "homepage": "https://github.com/koishijs/koishi-plugin-picsource-lolicon",
"dependencies": { "dependencies": {
"koishi-thirdeye": "^11.1.14" "koishi-thirdeye": "^11.1.16"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.10.4", "koishi": "^4.10.6",
"koishi-plugin-pics": "^10.2.1" "koishi-plugin-pics": "^10.6.1"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-console": "^4.7.1", "@koishijs/plugin-console": "^4.7.1",
......
...@@ -3,15 +3,11 @@ import { PicSourceLoliconPluginConfig } from './config'; ...@@ -3,15 +3,11 @@ import { PicSourceLoliconPluginConfig } from './config';
import { PicResult, PicSourcePlugin } from 'koishi-plugin-pics'; import { PicResult, PicSourcePlugin } from 'koishi-plugin-pics';
import { LoliconReturnMessage } from './def'; import { LoliconReturnMessage } from './def';
import { DefinePlugin, Inject } from 'koishi-thirdeye'; import { DefinePlugin, Inject } from 'koishi-thirdeye';
import { Quester } from 'koishi';
@DefinePlugin() @DefinePlugin()
export default class PicSourceLolicon extends PicSourcePlugin( export default class PicSourceLolicon extends PicSourcePlugin(
PicSourceLoliconPluginConfig, PicSourceLoliconPluginConfig,
) { ) {
@Inject(true)
private http: Quester;
async randomPic(picTags: string[]): Promise<PicResult> { async randomPic(picTags: string[]): Promise<PicResult> {
if (picTags.length > 3) { if (picTags.length > 3) {
return; return;
......
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