mirror-nourybot/internal/commands/youtube.go

14 lines
213 B
Go
Raw Normal View History

2023-10-10 14:28:43 +02:00
package commands
import (
"fmt"
"net/url"
)
func Youtube(query string) string {
query = url.QueryEscape(query)
reply := fmt.Sprintf("https://www.youtube.com/results?search_query=%s", query)
return reply
}