28 lines
677 B
Go
28 lines
677 B
Go
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
|
|
}
|
|
}
|
|
|