mirror-nourybot/pkg/commands/godocs.go

14 lines
223 B
Go
Raw Normal View History

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