9 Star 239 Fork 2

癫癫博士/yunzai_js插件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
随机淘宝买家秀(你这淘宝店正经吗).js 879 Bytes
一键复制 编辑 原始数据 按行查看 历史
import plugin from '../../lib/plugins/plugin.js'
import fetch from 'node-fetch'
import { segment } from "oicq";
export class tbmjx extends plugin {
constructor () {
super({
/** 功能名称 */
name: '随机淘宝买家秀',
/** 功能描述 */
dsc: '简单开发示例',
/** https://oicqjs.github.io/oicq/#events */
event: 'message',
/** 优先级,数字越小等级越高 */
priority: 5000,
rule: [
{
/** 命令正则匹配 */
reg: '^#买家秀$',
/** 执行方法 */
fnc: 'mjx'
}
]
})
}
async mjx (e) {
/** e.msg 用户的命令消息 */
logger.info('[用户命令]', e.msg)
let url = 'https://api.sdgou.cc/api/tao/'
/** 调用接口获取数据 */
/** 最后回复消息 */
await e.reply(segment.image(url))
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangshx2001/yunzai-js-plug-in.git
git@gitee.com:huangshx2001/yunzai-js-plug-in.git
huangshx2001
yunzai-js-plug-in
yunzai_js插件
master

搜索帮助