nonebot_plugin_admin icon indicating copy to clipboard operation
nonebot_plugin_admin copied to clipboard

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

Open ABKQPO opened this issue 2 years ago • 1 comments

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

如何复现

  1. /头衔 工作室
  2. 头衔操作成功:/工作室

ABKQPO avatar Jul 30 '23 23:07 ABKQPO

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

Enceladus6 avatar Aug 21 '23 06:08 Enceladus6