diff --git a/cmd/nourybot/paste.go b/cmd/nourybot/paste.go index 0d6ace2..b8daee0 100644 --- a/cmd/nourybot/paste.go +++ b/cmd/nourybot/paste.go @@ -13,7 +13,7 @@ import ( // this whole function was pretty much yoinked from here // https://github.com/zneix/haste-client/blob/master/main.go <3 func (app *application) uploadPaste(text string) (string, error) { - const hasteURL = "https://haste.dank.pw" + const hasteURL = "https://haste.noury.li" const apiRoute = "/documents" var httpClient = &http.Client{Timeout: 10 * time.Second} diff --git a/cmd/nourybot/router.go b/cmd/nourybot/router.go index c4ba592..a46cafb 100644 --- a/cmd/nourybot/router.go +++ b/cmd/nourybot/router.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" "html/template" - "io/ioutil" + "io" "log" "net/http" "os" @@ -43,7 +43,7 @@ type eventSubNotification struct { } func (app *application) eventsubFollow(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) if err != nil { log.Println(err) return