Commit 4d0927ef authored by nanahira's avatar nanahira

add http settings

parent 7f60b633
This diff is collapsed.
...@@ -45,11 +45,11 @@ ...@@ -45,11 +45,11 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"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",
......
...@@ -9,9 +9,6 @@ export * from './config'; ...@@ -9,9 +9,6 @@ export * from './config';
export default class PicSourceMiraikoi extends PicSourcePlugin( export default class PicSourceMiraikoi extends PicSourcePlugin(
PicSourceMiraikoiConfig, PicSourceMiraikoiConfig,
) { ) {
@Inject(true)
private http: Quester;
async randomPic(picTags: string[]): Promise<PicResult> { async randomPic(picTags: string[]): Promise<PicResult> {
const { pic } = await this.http.get<{ pic: string }>(this.config.endpoint, { const { pic } = await this.http.get<{ pic: string }>(this.config.endpoint, {
params: { params: {
......
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