From efa4ea87a0dfce9fdc94e77b927a63ef1e986c1e Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sun, 3 Dec 2023 15:58:33 +0100 Subject: [PATCH] remove unnecessary print statements --- cmd/nourybot/download.go | 17 ++++++++--------- cmd/nourybot/upload.go | 12 ++++++------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/cmd/nourybot/download.go b/cmd/nourybot/download.go index 092174f..29ba943 100644 --- a/cmd/nourybot/download.go +++ b/cmd/nourybot/download.go @@ -22,7 +22,6 @@ func (app *application) NewDownload(destination, target, link string, msg twitch link, identifier, ) - app.Send(target, "xd", msg) switch destination { case "catbox": @@ -53,10 +52,10 @@ func (app *application) YafDownload(target, link, identifier string, msg twitch. app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg) return } - app.Send(target, "Downloaded.", msg) + //app.Send(target, "Downloaded.", msg) fileName := fmt.Sprintf("%s.%s", identifier, rExt) f, err := os.Create(fileName) - app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) + //app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) if err != nil { app.Log.Errorln(err) @@ -97,10 +96,10 @@ func (app *application) KappaDownload(target, link, identifier string, msg twitc app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg) return } - app.Send(target, "Downloaded.", msg) + //app.Send(target, "Downloaded.", msg) fileName := fmt.Sprintf("%s.%s", identifier, rExt) f, err := os.Create(fileName) - app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) + //app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) if err != nil { app.Log.Errorln(err) @@ -142,10 +141,10 @@ func (app *application) GofileDownload(target, link, identifier string, msg twit app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg) return } - app.Send(target, "Downloaded.", msg) + //app.Send(target, "Downloaded.", msg) fileName := fmt.Sprintf("%s.%s", safeFilename, rExt) f, err := os.Create(fileName) - app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) + //app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) if err != nil { app.Log.Errorln(err) @@ -193,10 +192,10 @@ func (app *application) CatboxDownload(target, link, identifier string, msg twit app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg) return } - app.Send(target, "Downloaded.", msg) + //app.Send(target, "Downloaded.", msg) fileName = fmt.Sprintf("%s.%s", identifier, rExt) f, err := os.Create(fileName) - app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) + //app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg) if err != nil { app.Log.Errorln(err) diff --git a/cmd/nourybot/upload.go b/cmd/nourybot/upload.go index 2580519..b15c2ec 100644 --- a/cmd/nourybot/upload.go +++ b/cmd/nourybot/upload.go @@ -108,7 +108,7 @@ func (app *application) CatboxUpload(target, fileName, identifier string, msg tw reply := string(body) go app.Models.Uploads.UpdateUploadURL(identifier, reply) - app.Send(target, fmt.Sprintf("Removing file: %s", fileName), msg) + //app.Send(target, fmt.Sprintf("Removing file: %s", fileName), msg) app.Send(target, reply, msg) } @@ -179,7 +179,7 @@ func (app *application) GofileUpload(target, path, identifier string, msg twitch return } defer resp.Body.Close() - app.Send(target, "Uploaded PogChamp", msg) + //app.Send(target, "Uploaded PogChamp", msg) body, err := io.ReadAll(resp.Body) if err != nil { @@ -199,7 +199,7 @@ func (app *application) GofileUpload(target, path, identifier string, msg twitch var reply = jsonResponse.Data.DownloadPage go app.Models.Uploads.UpdateUploadURL(identifier, reply) - app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) + //app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) app.Send(target, reply, msg) } @@ -267,7 +267,7 @@ func (app *application) KappaUpload(target, path, identifier string, msg twitch. return } defer resp.Body.Close() - app.Send(target, "Uploaded PogChamp", msg) + //app.Send(target, "Uploaded PogChamp", msg) body, err := io.ReadAll(resp.Body) if err != nil { @@ -287,7 +287,7 @@ func (app *application) KappaUpload(target, path, identifier string, msg twitch. var reply = jsonResponse.Link go app.Models.Uploads.UpdateUploadURL(identifier, reply) - app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) + //app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) app.Send(target, reply, msg) } @@ -363,6 +363,6 @@ func (app *application) YafUpload(target, path, identifier string, msg twitch.Pr var reply = string(body[:]) go app.Models.Uploads.UpdateUploadURL(identifier, reply) - app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) + //app.Send(target, fmt.Sprintf("Removing file: %s", path), msg) app.Send(target, reply, msg) }