Advertise commands
This commit is contained in:
16
main.go
16
main.go
@ -35,6 +35,22 @@ func main() {
|
||||
handlers := keybase.Handlers{
|
||||
ChatHandler: &chat,
|
||||
}
|
||||
cmds := keybase.AdvertiseCommandsOptions{
|
||||
Alias: "Realm Status",
|
||||
Advertisements: []chat1.AdvertiseCommandAPIParam{
|
||||
{
|
||||
Typ: "public",
|
||||
Commands: []chat1.UserBotCommandInput{
|
||||
{
|
||||
Name: "realm",
|
||||
Description: "Request a Realm's status",
|
||||
Usage: "!realm Kirin Tor",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
k.AdvertiseCommands(cmds)
|
||||
k.Run(handlers, &keybase.RunOptions{})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user