mirror-nourybot/pkg/commands/osrs.go
2024-02-28 11:53:39 +01:00

15 lines
257 B
Go

package commands
import (
"fmt"
"net/url"
)
// OSRS returns the search link for a given query.
func OSRS(query string) string {
query = url.QueryEscape(query)
reply := fmt.Sprintf("https://oldschool.runescape.wiki/?search=%s", query)
return reply
}