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

2.0机器人-bug #150

Open
BSTluo opened this issue Dec 30, 2022 · 0 comments
Open

2.0机器人-bug #150

BSTluo opened this issue Dec 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BSTluo
Copy link
Contributor

BSTluo commented Dec 30, 2022

    @app.decorators.Command({
      name: '.问<触发词>答<回答句>',
      command: /^\.问([\s\S]+?)答([\s\S]+)$/,
      desc: '添加问答',
      usage: '.问a答b',
      privateChat: true, // 是否接受私聊消息(可选,默认为true)
      publicChat: true // `是否接受群聊消息(可选,默认为true)`
    })
    public addWord(msg: PublicMessageEvent, args: RegExpExecArray) {
      console.log(msg)
      console.log(args)
    }

公屏触发时有输出
私聊触发时无输出

不知道有没有像2.0一样的reply函数,能够根据公屏还是私聊触发回复相应的回复

@TheresaQWQ TheresaQWQ added the bug Something isn't working label Dec 31, 2022
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