diff --git a/api/optout.go b/api/optout.go
index 6f051f2..818db3b 100644
--- a/api/optout.go
+++ b/api/optout.go
@@ -2,7 +2,7 @@ package api
import (
"math/rand"
- "net/http"
+ // "net/http"
"time"
)
@@ -21,25 +21,25 @@ func init() {
//
// Responses:
// 200: string
-func (s *Server) writeOptOutCode(w http.ResponseWriter, r *http.Request) {
+// func (s *Server) writeOptOutCode(w http.ResponseWriter, r *http.Request) {
- code := randomString(6)
+// code := randomString(6)
- s.bot.OptoutCodes.Store(code, true)
- go func() {
- time.Sleep(time.Second * 60)
- s.bot.OptoutCodes.Delete(code)
- }()
+// s.bot.OptoutCodes.Store(code, true)
+// go func() {
+// time.Sleep(time.Second * 60)
+// s.bot.OptoutCodes.Delete(code)
+// }()
- writeJSON(code, http.StatusOK, w, r)
-}
+// writeJSON(code, http.StatusOK, w, r)
+// }
-var letterRunes = []rune("abcdefghijklmnopqrstuvwxyz1234567890")
+// var letterRunes = []rune("abcdefghijklmnopqrstuvwxyz1234567890")
-func randomString(n int) string {
- b := make([]rune, n)
- for i := range b {
- b[i] = letterRunes[rand.Intn(len(letterRunes))]
- }
- return string(b)
-}
+// func randomString(n int) string {
+// b := make([]rune, n)
+// for i := range b {
+// b[i] = letterRunes[rand.Intn(len(letterRunes))]
+// }
+// return string(b)
+// }
diff --git a/api/server.go b/api/server.go
index 89025ad..3ac5d43 100644
--- a/api/server.go
+++ b/api/server.go
@@ -126,7 +126,7 @@ func (s *Server) route(w http.ResponseWriter, r *http.Request) {
if url == "/list" {
if s.cfg.IsOptedOut(query.Get("userid")) || s.cfg.IsOptedOut(query.Get("channelid")) {
- http.Error(w, "User or channel has opted out", http.StatusForbidden)
+ http.Error(w, "User or channel is a cuck", http.StatusForbidden)
return
}
@@ -139,10 +139,10 @@ func (s *Server) route(w http.ResponseWriter, r *http.Request) {
return
}
- if url == "/optout" && r.Method == http.MethodPost {
- s.writeOptOutCode(w, r)
- return
- }
+ // if url == "/optout" && r.Method == http.MethodPost {
+ // s.writeOptOutCode(w, r)
+ // return
+ // }
if strings.HasPrefix(url, "/admin/channels") {
success := s.authenticateAdmin(w, r)
diff --git a/config.json.dist b/config.json.dist
deleted file mode 100644
index 58bfd4d..0000000
--- a/config.json.dist
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "admins": ["gempir"],
- "logsDirectory": "./logs",
- "adminAPIKey": "noshot",
- "username": "gempbot",
- "oauth": "oauthtokenforchat",
- "botVerified": true,
- "clientID": "mytwitchclientid",
- "clientSecret": "mysecret",
- "logLevel": "info",
- "channels": ["77829817", "11148817"],
- "archive": true
-}
diff --git a/web/dist/.gitkeep b/web/dist/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/web/index.html b/web/index.html
index 0599a43..5dfeddd 100644
--- a/web/index.html
+++ b/web/index.html
@@ -11,9 +11,10 @@