mirror-nourybot/pkg/commands/osrs.go

15 lines
257 B
Go
Raw Normal View History

2023-10-10 14:28:43 +02:00
package commands
import (
"fmt"
"net/url"
)
2024-02-28 11:53:39 +01:00
// OSRS returns the search link for a given query.
2023-10-10 14:28:43 +02:00
func OSRS(query string) string {
query = url.QueryEscape(query)
reply := fmt.Sprintf("https://oldschool.runescape.wiki/?search=%s", query)
return reply
}