ChatGPT-wechat-bot
ChatGPT-wechat-bot copied to clipboard
在群中改过昵称被@就无法触发bot
错误显示 Content is not within the scope of the customizition format
把regex改成这个就行了,之前的正则太严格了
const pattern = new RegExp(^@[-'a-z\u4e00-\u9eff]{1,20}\\s+${config.groupKey}[\\s]*
,'u');
把regex改成这个就行了,之前的正则太严格了
const pattern = new RegExp(
^@[-'a-z\u4e00-\u9eff]{1,20}\\s+${config.groupKey}[\\s]*
,'u');
改了直接显示错误
把regex改成这个就行了,之前的正则太严格了 const pattern = new RegExp(
^@[-'a-z\u4e00-\u9eff]{1,20}\\s+${config.groupKey}[\\s]*
,'u');改了直接显示错误
我自己代码里用的就是这段,运行非常正常,你可以写个小测试看看问题出在哪