代码拉取完成,页面将自动刷新
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))
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。