mirror-nourybot/internal/commands/duckduckgo.go
2023-10-10 14:28:43 +02:00

14 lines
208 B
Go

package commands
import (
"fmt"
"net/url"
)
func DuckDuckGo(query string) string {
query = url.QueryEscape(query)
reply := fmt.Sprintf("https://duckduckgo.com/?va=n&hps=1&q=%s", query)
return reply
}