适配R插件
代码参考 @zhiyu1998 佬在 Yunzai-Bot 提交的代码 Signed-off-by: ฅ懒喵喵吖 <2865556514@qq.com>
This commit is contained in:
		
							parent
							
								
									b561ab4b3b
								
							
						
					
					
						commit
						e7644ea92f
					
				|  | @ -236,7 +236,10 @@ class PluginsLoader { | |||
|             /** 判断事件 */ | ||||
|             if (v.event && !this.filtEvent(e, v)) continue | ||||
| 
 | ||||
|             if (new RegExp(v.reg).test(e.msg)) { | ||||
|             const regExp = new RegExp(v.reg); | ||||
|             /**  匹配消息或者小程序 */ | ||||
|             const messageOrApplet = e.msg || e.message?.[0]?.data; | ||||
|             if (regExp.test(messageOrApplet)) { | ||||
|               e.logFnc = `[${plugin.name}][${v.fnc}]` | ||||
| 
 | ||||
|               if (v.log !== false) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue