mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
15 lines
279 B
Go
15 lines
279 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/lyx0/nourybot/cmd/bot"
|
|
)
|
|
|
|
// Godocs responds with a search for a given term on godocs.io
|
|
func Godocs(channel, searchTerm string, nb *bot.Bot) {
|
|
resp := fmt.Sprintf("https://godocs.io/?q=%s", searchTerm)
|
|
|
|
nb.Send(channel, resp)
|
|
}
|