yaf.ee -> yaf.li

This commit is contained in:
lyx0 2023-11-12 12:39:05 +01:00
parent ae52863b93
commit 762b280698
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ const (
CATBOX_ENDPOINT = "https://litterbox.catbox.moe/resources/internals/api.php" CATBOX_ENDPOINT = "https://litterbox.catbox.moe/resources/internals/api.php"
GOFILE_ENDPOINT = "https://store1.gofile.io/uploadFile" GOFILE_ENDPOINT = "https://store1.gofile.io/uploadFile"
KAPPA_ENDPOINT = "https://kappa.lol/api/upload" 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) { 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) { func (app *application) YafUpload(target, path, identifier string, msg twitch.PrivateMessage) {
defer os.Remove(path) 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() pr, pw := io.Pipe()
form := multipart.NewWriter(pw) form := multipart.NewWriter(pw)

View file

@ -12,6 +12,6 @@ CREATE TABLE IF NOT EXISTS uploads (
); );
INSERT INTO uploads (added_at,twitchlogin,twitchid,twitchchannel,twitchmessage,filehoster,downloadurl,uploadurl,identifier) VALUES 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'); (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');