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

请问如何才能让关键字触发的时候bot自动回复? #4

Closed
sakurakyoko10 opened this issue Jul 26, 2021 · 8 comments
Closed
Labels
good first issue Good for newcomers question Question about usage or information

Comments

@sakurakyoko10
Copy link

我把“view-mode”修改为1后也没有解决,把reply-mode改成1仍然不回复

@unlimitwhitenight
Copy link

得用模糊或者正则吧,但是好像并没有生效,没有触发关键字直接回复,试了很久都没有成功,必须要全都是精确回复

@Ag-elf
Copy link

Ag-elf commented Jul 27, 2021

# My settings
reply-mode: 0
view-mode: 1
default-switch: 1
  1. 应该只有在群组会回复
  2. 应该需要确认群组是否有权限
  3. 应该需要保证词条已经入库
  4. mcl 是否有报错 ?

@BillYang2016
Copy link
Owner

得用模糊或者正则吧,但是好像并没有生效,没有触发关键字直接回复,试了很久都没有成功,必须要全都是精确回复

view-mode调整为1后使用模糊方式学习。
请重试一下,若仍有相同问题请提供一下详细信息或复现方案

@BillYang2016 BillYang2016 added the question Question about usage or information label Jul 27, 2021
@unlimitwhitenight
Copy link

得用模糊或者正则吧,但是好像并没有生效,没有触发关键字直接回复,试了很久都没有成功,必须要全都是精确回复

view-mode调整为1后使用模糊方式学习。
请重试一下,若仍有相同问题请提供一下详细信息或复现方案

重新试了一下,模糊能用,但是正则好像用不了,有没有例子说明一下比如 /正则表达式/ 之类的

@BillYang2016
Copy link
Owner

重新试了一下,模糊能用,但是正则好像用不了,有没有例子说明一下比如 /正则表达式/ 之类的

将正则匹配模式串作为词条名,将回复内容作为词条内容,我稍后添加例子放在 README 中

@BillYang2016
Copy link
Owner

重新试了一下,模糊能用,但是正则好像用不了,有没有例子说明一下比如 /正则表达式/ 之类的

已添加示例

@BillYang2016
Copy link
Owner

我把“view-mode”修改为1后也没有解决,把reply-mode改成1仍然不回复

@sakurakyoko10 请问问题是否已解决

@BillYang2016
Copy link
Owner

另,若只需要回复,推荐修改output.json配置:

"view":{
-  "reply":"$1 的内容如下:\n--------\n$2"
+  "reply":"$2"
}

本issue将关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Question about usage or information
Projects
None yet
Development

No branches or pull requests

4 participants