1 Star 3 Fork 0

Hello World/YunzaiJS-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
随机图规则.js 919 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hello World 提交于 2023-01-04 00:43 . 更改了哼哼啊啊啊啊啊
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: 1000,
rule: [
{
/** 命令正则匹配 */
reg: '随机图规则',
/** 执行方法 */
fnc: 'setuguize'
}
]
})
}
async setuguize (e) {
logger.info('[用户命令]', e.msg)
await this.reply('口令:随机图\n随机出一张图\n70%穿衣服,不漏\n18%穿衣服,少漏\n8%穿游装\n2.8%穿游装,少漏\n1%穿游装,多漏\n0.2%不穿\n图片会在十秒后撤回。')}}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wan13877501248/yunzai-js-example.git
[email protected]:wan13877501248/yunzai-js-example.git
wan13877501248
yunzai-js-example
YunzaiJS-example
master

搜索帮助