mirror-nourybot/pkg/commands/godocs.go

14 lines
216 B
Go
Raw Normal View History

2021-10-19 23:53:41 +02:00
package commands
import (
"fmt"
"github.com/lyx0/nourybot/cmd/bot"
)
2021-10-24 17:52:24 +02:00
func Godocs(channel, searchTerm string, nb *bot.Bot) {
2021-10-19 23:53:41 +02:00
resp := fmt.Sprintf("https://godocs.io/?q=%s", searchTerm)
nb.Send(channel, resp)
}