remove unnecessary print statements

This commit is contained in:
lyx0 2023-12-03 15:58:33 +01:00
parent 762b280698
commit efa4ea87a0
2 changed files with 14 additions and 15 deletions

View file

@ -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)

View file

@ -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)
}