initial commit
This commit is contained in:
3
go.mod
Normal file
3
go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module git.sunturtle.xyz/zephyr/onlydiapers
|
||||||
|
|
||||||
|
go 1.24.2
|
||||||
27
main.go
Normal file
27
main.go
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
"log"
|
||||||
|
"log/slog"
|
||||||
|
"net/http"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
log.Fatal(http.ListenAndServe(":3810", http.HandlerFunc(dump)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func dump(w http.ResponseWriter, r *http.Request) {
|
||||||
|
_, err := io.WriteString(w, `<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Zoe Victoria Fanart!</title></head><body>`)
|
||||||
|
t := 60 * time.Millisecond
|
||||||
|
f := w.(http.Flusher)
|
||||||
|
for err == nil {
|
||||||
|
f.Flush()
|
||||||
|
slog.Info("diaper", slog.String("to", r.RemoteAddr))
|
||||||
|
_, err = io.WriteString(w, `<img src="https://static-cdn.jtvnw.net/emoticons/v2/emotesv2_a61d7d282b6749cebd993b5a6caacf2e/default/dark/3.0">`)
|
||||||
|
time.Sleep(t)
|
||||||
|
t += 30 * time.Millisecond
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user