Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[插件BUG]词语替换1.3 BUG AttributeError: 'Message' object has no attribute 'text_origin' #174

Closed
EternalBook opened this issue Jan 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@EternalBook
Copy link

问题描述

RG3NES8GQ)`R7Y1BMKK 39X
AttributeError: 'Message' object has no attribute 'text_origin'
系统:Debian
python3.9

复现

是可以复现的BUG 不单是词语替换插件

Amiya-Bot 版本

6.0.11

其他插件版本

No response

日志

2023-01-31 13:22:14,969 [     Bot][   ERROR] handler error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/amiyabot/log/manager.py", line 100, in catch
    yield
  File "/usr/local/lib/python3.9/dist-packages/amiyabot/__init__.py", line 59, in __message_handler
    await message_handler(self, event, message)
  File "/usr/local/lib/python3.9/dist-packages/amiyabot/factory/messageHandler.py", line 36, in message_handler
    data = await middleware(data) or data
  File "/root/Amiya-Bot/plugins/amiyabot-replace-1_3/main.py", line 68, in _
    text = data.text_origin
AttributeError: 'Message' object has no attribute 'text_origin'

补充信息

No response

@EternalBook EternalBook added the bug Something isn't working label Jan 31, 2023
@vivien8261
Copy link
Member

vivien8261 commented Jan 31, 2023

依赖降级到 1.2.7

pip install amiyabot==1.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants