diff --git a/cmd/nourybot/upload.go b/cmd/nourybot/upload.go index edcc890..2580519 100644 --- a/cmd/nourybot/upload.go +++ b/cmd/nourybot/upload.go @@ -26,7 +26,7 @@ const ( CATBOX_ENDPOINT = "https://litterbox.catbox.moe/resources/internals/api.php" GOFILE_ENDPOINT = "https://store1.gofile.io/uploadFile" KAPPA_ENDPOINT = "https://kappa.lol/api/upload" - YAF_ENDPOINT = "https://i.yaf.ee/upload" + YAF_ENDPOINT = "https://i.yaf.li/upload" ) func (app *application) NewUpload(destination, fileName, target, identifier string, msg twitch.PrivateMessage) { @@ -293,7 +293,7 @@ func (app *application) KappaUpload(target, path, identifier string, msg twitch. func (app *application) YafUpload(target, path, identifier string, msg twitch.PrivateMessage) { defer os.Remove(path) - app.Send(target, "Uploading to yaf.ee... dankCircle", msg) + app.Send(target, "Uploading to yaf.li... dankCircle", msg) pr, pw := io.Pipe() form := multipart.NewWriter(pw) diff --git a/migrations/000005_create_uploads_table.up.sql b/migrations/000005_create_uploads_table.up.sql index fff8f72..7064fe5 100644 --- a/migrations/000005_create_uploads_table.up.sql +++ b/migrations/000005_create_uploads_table.up.sql @@ -12,6 +12,6 @@ CREATE TABLE IF NOT EXISTS uploads ( ); INSERT INTO uploads (added_at,twitchlogin,twitchid,twitchchannel,twitchmessage,filehoster,downloadurl,uploadurl,identifier) VALUES - (NOW(),'nouryxd','31437432','nouryxd','()yaf https://www.youtube.com/watch?v=3rBFkwtaQbU','yaf','https://www.youtube.com/watch?v=3rBFkwtaQbU','https://i.yaf.ee/LEFuX.webm','a4af2284-4e13-46fa-9896-393bb1771a9d'), + (NOW(),'nouryxd','31437432','nouryxd','()yaf https://www.youtube.com/watch?v=3rBFkwtaQbU','yaf','https://www.youtube.com/watch?v=3rBFkwtaQbU','https://i.yaf.li/LEFuX.webm','a4af2284-4e13-46fa-9896-393bb1771a9d'), (NOW(),'uudelleenkytkeytynyt','465178364','nouryxd','()gofile https://www.youtube.com/watch?v=st6yupvNkVo','gofile','https://www.youtube.com/watch?v=st6yupvNkVo','https://gofile.io/d/PD1QNr','4ec952cc-42c0-41cd-9b07-637b4ec3c2b3');