mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🌈 style: 整理类别
This commit is contained in:
parent
3e19288ed8
commit
fbf8e06f9b
@ -1,9 +1,10 @@
|
||||
// 主库
|
||||
import { segment } from 'oicq'
|
||||
import fetch from 'node-fetch'
|
||||
// 配置文件
|
||||
import config from '../model/index.js'
|
||||
// 爬虫库
|
||||
import puppeteer from '../../../lib/puppeteer/puppeteer.js'
|
||||
import config from "../model";
|
||||
import _ from 'lodash'
|
||||
|
||||
export class query extends plugin {
|
||||
@ -65,7 +66,7 @@ export class query extends plugin {
|
||||
await e.reply(segment.image(buff))
|
||||
}
|
||||
msg.push({
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.uin
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.user_id
|
||||
})
|
||||
}
|
||||
/** 最后回复消息 */
|
||||
@ -96,7 +97,7 @@ export class query extends plugin {
|
||||
res.data.list.forEach((element) => {
|
||||
const template = `推荐软件:${ element.title }\n地址:${ element.url }\n`
|
||||
msg.push({
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.uin
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.user_id
|
||||
})
|
||||
})
|
||||
/** 最后回复消息 */
|
||||
@ -111,7 +112,7 @@ export class query extends plugin {
|
||||
res.data.list.forEach((element) => {
|
||||
const template = `推荐软件:${ element.title }\n地址:${ element.url }\n`
|
||||
msg.push({
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.uin
|
||||
message: { type: 'text', text: `${ template }` }, nickname: Bot.nickname, user_id: Bot.user_id
|
||||
})
|
||||
})
|
||||
return !!this.reply(await Bot.makeForwardMsg(msg))
|
||||
|
@ -1,6 +1,6 @@
|
||||
- group: 查询类功能
|
||||
list:
|
||||
- icon: query
|
||||
- icon: doctor
|
||||
title: "#医药查询 疾病/症状/医院/医生/药品"
|
||||
desc: 便利的医药查询功能
|
||||
- icon: cat
|
||||
|
69
package-lock.json
generated
69
package-lock.json
generated
@ -1,69 +0,0 @@
|
||||
{
|
||||
"name": "rconsole-plugin",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"axios": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.2.0.tgz",
|
||||
"integrity": "sha512-zT7wZyNYu3N5Bu0wuZ6QccIf93Qk1eV8LOewxgjOZFd2DenOs98cJ7+Y6703d0wkaXGY6/nZd4EweJaHz9uzQw==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.15.0",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"requires": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.15.2",
|
||||
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
||||
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
|
||||
},
|
||||
"form-data": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz",
|
||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
||||
"requires": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"requires": {
|
||||
"mime-db": "1.52.0"
|
||||
}
|
||||
},
|
||||
"proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
|
||||
}
|
||||
}
|
||||
}
|
22
package.json
22
package.json
@ -1,22 +0,0 @@
|
||||
{
|
||||
"name": "rconsole-plugin",
|
||||
"version": "1.0.0",
|
||||
"description": "<p align=\"center\">\r <a href=\"https://gitee.com/kyrzy0416/rconsole-plugin\">\r <img width=\"200\" src=\"./img/logo.png\">\r </a>\r </p>",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/kyrzy0416/rconsole-plugin.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^1.2.0"
|
||||
}
|
||||
}
|
3
resources/package-lock.json
generated
3
resources/package-lock.json
generated
@ -1,3 +0,0 @@
|
||||
{
|
||||
"lockfileVersion": 1
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user