Skip to content

前缀指令和艾特触发异常 #825

@wanci67

Description

@wanci67

1.前缀指令触发报错
功能在TRSS+NapCat上报错

[aa  ][ChatGPT-Plugin对  (chat)] TypeError: First argument to String.prototy
pe.startsWith must not be a regular expression
    at String.startsWith (<anonymous>)
    at checkChatMsg (file:///root/Yunzai/plugins/chatgpt-plugin/utils/message.js:17
3:40)
    at getPreset (file:///root/Yunzai/plugins/chatgpt-plugin/utils/message.js:134:2
3)
    at Chat.chat (file:///root/Yunzai/plugins/chatgpt-plugin/apps/chat.js:43:26)
    at async PluginsLoader.deal (file:///root/Yunzai/lib/plugins/loader.js:276:45)
{
  [stack]: 'TypeError: First argument to String.prototype.startsWith must not be a
regular expression\n' +
    '    at String.startsWith (<anonymous>)\n' +
    '    at checkChatMsg (file:///root/Yunzai/plugins/chatgpt-plugin/utils/message.
js:173:40)\n' +
    '    at getPreset (file:///root/Yunzai/plugins/chatgpt-plugin/utils/message.js:
134:23)\n' +
    '    at Chat.chat (file:///root/Yunzai/plugins/chatgpt-plugin/apps/chat.js:43:2
6)\n' +
    '    at async PluginsLoader.deal (file:///root/Yunzai/lib/plugins/loader.js:276
:45)',
  [message]: 'First argument to String.prototype.startsWith must not be a regular e
xpression'
}

2.艾特触发异常
在TRSS_napcat上艾特机器人无反应,也无任何chatgpt插件的日志输出

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions