From bb521cfe73d6451e1d8cbe6dd05c3be84f7710a6 Mon Sep 17 00:00:00 2001 From: heiyubaimu <12254190+heiyubaimu@user.noreply.gitee.com> Date: Sat, 24 Dec 2022 16:39:15 +0000 Subject: [PATCH] 0 Signed-off-by: heiyubaimu <12254190+heiyubaimu@user.noreply.gitee.com> --- apps/ysmh.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/ysmh.js b/apps/ysmh.js index a818482..fc2267c 100644 --- a/apps/ysmh.js +++ b/apps/ysmh.js @@ -1,4 +1,4 @@ -//插件:原神盲盒 +//插件:涩涩盲盒 import { segment } from "oicq"; import fetch from "node-fetch"; import plugin from '../../../lib/plugins/plugin.js'; @@ -14,23 +14,23 @@ let isopen = settings.yuanmangheshen export class ysmh extends plugin { constructor() { super({ - name: '原神盲盒', - dsc: 'ysmh', + name: '涩涩盲盒', + dsc: 'ssmh', event: 'message', priority: 4999,//优先级,数越小优先度越高 rule: [ { - reg: '^#?原神盲盒$', - fnc: 'ysmh' + reg: '^#?涩涩盲盒$', + fnc: 'ssmh' } ,{ - reg: '^#?(\\d+份)原神盲盒$', - fnc: 'moreysmh' + reg: '^#?(\\d+份)涩涩盲盒$', + fnc: 'moressmh' } ] }) } - async ysmh(e) { + async ssmh(e) { if (!isopen) { return false } else { @@ -39,8 +39,8 @@ export class ysmh extends plugin { isopen = true; }, cdtime); } - let url = `https://api.dujin.org/pic/yuanshen` - await e.reply('原神盲盒派送中~',true,{recallMsg:7}) + let url = `https://ranpic.sesepic.top` + await e.reply('涩涩盲盒派送中~',true,{recallMsg:7}) let msg=[segment.image(url)] e.reply(msg,false) @@ -54,8 +54,8 @@ export class ysmh extends plugin { isopen = true }, cdtime) } - let url = `https://api.dujin.org/pic/yuanshen` - await e.reply('原神盲盒派送中~',true,{recallMsg:7}) + let url = `https://ranpic.sesepic.top` + await e.reply('涩涩盲盒派送中~',true,{recallMsg:7}) let num = e.msg.match(/\d+/) for (let i = 0; i < [num]; i++) { let msg=[segment.image(url)] -- Gitee