Skip to content

[Bug?]: 私聊状态下表情回复调用失败造成ERROR #6

Description

@xiaochen808

请确保以下事项

  • 我已经阅读了文档
  • 我确定没有重复的issue或讨论。
  • 我确定是meme-plugin的问题,而不是其他原因(例如网络,依赖操作)。
  • 我确定这个问题在最新版本中没有被修复。

版本

527c114

问题描述

在私聊状态下,调用相关功能时,由于代码尝试调用一个对象的  setReaction  方法,但这个对象的值是  undefined,导致报错。

配置

未找到相应配置项

操作步骤

发送消息无任何回应

Image

日志

[34m[清语表情:表情包生成(meme)]�[39m TypeError: Cannot read properties of undefined (reading 'setReaction')
    at meme �[90m(file:///root/TRSS_AllBot/TRSS-Yunzai/�[39mplugins/meme-plugin/apps/meme.js:76:13�[90m)�[39m
    at PluginsLoader.deal �[90m(file:///root/TRSS_AllBot/TRSS-Yunzai/�[39mlib/plugins/loader.js:276:64�[90m)�[39m
�[90m    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m {
  [stack]: �[36m[Getter/Setter:�[39m �[32m"TypeError: Cannot read properties of undefined (reading 'setReaction')\n"�[39m +
    �[32m'    at meme (file:///root/TRSS_AllBot/TRSS-Yunzai/plugins/meme-plugin/apps/meme.js:76:13)\n'�[39m +
    �[32m'    at PluginsLoader.deal (file:///root/TRSS_AllBot/TRSS-Yunzai/lib/plugins/loader.js:276:64)\n'�[39m +
    �[32m'    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)'�[39m�[36m]�[39m,
  [message]: �[32m"Cannot read properties of undefined (reading 'setReaction')"�[39m
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions