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]给用户头衔时,错误识别指令前缀 #91

Open
ABKQPO opened this issue Jul 30, 2023 · 1 comment
Open

[BUG]给用户头衔时,错误识别指令前缀 #91

ABKQPO opened this issue Jul 30, 2023 · 1 comment
Labels
bug 一起抓虫子

Comments

@ABKQPO
Copy link

ABKQPO commented Jul 30, 2023

描述 bug
使用自助头衔或超管给头衔时,如果指令有前缀则会在头衔的前面加上指令前缀

如何复现

  1. /头衔 工作室
  2. 头衔操作成功:/工作室
@Enceladus6
Copy link

Enceladus6 commented Aug 21, 2023

找到...\.venv\Lib\site-packages\nonebot_plugin_admin\admin.py
133行改为: s_title = msg.replace(' ', '').replace('/头衔', '', 1)

@yzyyz1387 yzyyz1387 added the bug 一起抓虫子 label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 一起抓虫子
Projects
None yet
Development

No branches or pull requests

3 participants