mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
15 lines
264 B
Go
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
|
|
}
|