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

15 lines
264 B
Go

package commands
import (
"fmt"
"net/url"
)
// Youtube returns a search link to a given query.
func Youtube(query string) string {
query = url.QueryEscape(query)
reply := fmt.Sprintf("https://www.youtube.com/results?search_query=%s", query)
return reply
}