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

plugin-common - echo 指令 - --channel 参数无法使用的问题 #264

Closed
ilharp opened this issue May 5, 2021 · 5 comments
Closed

plugin-common - echo 指令 - --channel 参数无法使用的问题 #264

ilharp opened this issue May 5, 2021 · 5 comments
Labels
bug BUG

Comments

@ilharp
Copy link
Member

ilharp commented May 5, 2021

Describe the bug

plugin-common - echo 指令 - --channel 参数无法使用。

To Reproduce

发送 echo -c "kaiheila:6055102030405060" Test 机器人返回如下提示:

选项 channel 输入无效,请指定正确的频道。

Versions

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:        20.04
Codename:       focal
$ node -v
v14.15.1
$ npx koishi -v
koishi/3.10.1
@ilharp ilharp added the bug BUG label May 5, 2021
@shigma
Copy link
Member

shigma commented May 5, 2021

-c #kaiheila:6055102030405060

@ilharp
Copy link
Member Author

ilharp commented May 5, 2021

出现了本不该出现的 onebot,看起来逻辑存在着奇怪的问题

0|harper-n | [W] command executing command: echo --channel kaiheila:6055102030405060 Test
0|harper-n |     SenderError: Error when trying to send to send_group_msg, args: {"group_id":"6055102030405060","message":"Test"}, retcode: 100
0|harper-n |         at CQBot.get (/proj/harper-neko/node_modules/koishi-adapter-onebot/lib/index.js:330:13)

@shigma
Copy link
Member

shigma commented May 5, 2021

我是说你加个 # 前缀

@ilharp
Copy link
Member Author

ilharp commented May 5, 2021

如果我的理解没有错误的话,这正是这个 bug 的奇怪之处
我的 # 呢

@ilharp
Copy link
Member Author

ilharp commented May 5, 2021

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

2 participants