mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
14 lines
199 B
Go
14 lines
199 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/url"
|
||
|
)
|
||
|
|
||
|
func Google(query string) string {
|
||
|
query = url.QueryEscape(query)
|
||
|
reply := fmt.Sprintf("https://www.google.com/search?q=%s", query)
|
||
|
|
||
|
return reply
|
||
|
}
|