-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
为什么先说内容后@,不会触发机器人。例如:你好@Bot
就不触发
#2425
Comments
# channel/chat_channel.py
def check_prefix(content, prefix_list):
if not prefix_list:
return None
for prefix in prefix_list:
if content.startswith(prefix):
return prefix
return None
|
谢谢你的回复。我注意到这里的代码了。我之所以有这个疑问是因为,在我配置@bot触发时,无论@bot是否在开头,都会触发;但当我换了一个触发前缀后,就只能在开头触发了,一度让我以为是哪里有问题。 |
如果你的机器人微信昵称恰好是bot,那@bot放到哪里都无所谓的,默认是开启了群聊艾特触发的。 |
前置确认
操作系统类型?
Windows
运行的python版本是?
python 3.9
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
你好@bot
问题描述 😯
你好@bot
终端日志 📒
The text was updated successfully, but these errors were encountered: