Commit 4d0927ef authored by nanahira's avatar nanahira

add http settings

parent 7f60b633
This diff is collapsed.
......@@ -45,11 +45,11 @@
"testEnvironment": "node"
},
"dependencies": {
"koishi-thirdeye": "^11.1.14"
"koishi-thirdeye": "^11.1.16"
},
"peerDependencies": {
"koishi": "^4.10.4",
"koishi-plugin-pics": "^10.2.1"
"koishi": "^4.10.6",
"koishi-plugin-pics": "^10.6.1"
},
"devDependencies": {
"@koishijs/plugin-console": "^4.7.1",
......
......@@ -9,9 +9,6 @@ export * from './config';
export default class PicSourceMiraikoi extends PicSourcePlugin(
PicSourceMiraikoiConfig,
) {
@Inject(true)
private http: Quester;
async randomPic(picTags: string[]): Promise<PicResult> {
const { pic } = await this.http.get<{ pic: string }>(this.config.endpoint, {
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