mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
16 lines
306 B
Go
16 lines
306 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
"net/url"
|
|
|
|
"github.com/lyx0/nourybot/cmd/bot"
|
|
)
|
|
|
|
// Osrs responds with a link to a given osrs wiki search.
|
|
func Osrs(target, term string, nb *bot.Bot) {
|
|
reply := fmt.Sprint("https://oldschool.runescape.wiki/?search=" + url.QueryEscape(term))
|
|
|
|
nb.Send(target, reply)
|
|
}
|