mirror of
https://github.com/awfufu/go-hurobot.git
synced 2026-03-01 05:29:43 +08:00
21 lines
426 B
Go
21 lines
426 B
Go
package cmds
|
|
|
|
import (
|
|
"github.com/awfufu/qbot"
|
|
)
|
|
|
|
const echoHelpMsg string = `Echoes messages to a target destination.
|
|
Usage: /echo <any>
|
|
Example: /echo helloworld`
|
|
|
|
var echoCommand *Command = &Command{
|
|
Name: "echo",
|
|
HelpMsg: echoHelpMsg,
|
|
Permission: getCmdPermLevel("echo"),
|
|
NeedRawMsg: false,
|
|
MinArgs: 2,
|
|
Exec: func(b *qbot.Sender, msg *qbot.Message) {
|
|
b.SendGroupMsg(msg.GroupID, msg.Array[1:])
|
|
},
|
|
}
|