Remove debug code

This commit is contained in:
Elara 2023-01-23 14:21:04 -08:00
parent 6f8860ba80
commit 37da95522c

View File

@ -2,7 +2,6 @@ package main
import ( import (
"context" "context"
"fmt"
"os" "os"
"os/signal" "os/signal"
"strings" "strings"
@ -139,10 +138,8 @@ func commentWorker(ctx context.Context, c *lemmy.WSClient, replyCh chan<- replyJ
continue continue
} }
body := pr.PostView.Post.URL.ValueOr("") + "\n\n" + pr.PostView.Post.Body.ValueOr("")
for i, reply := range cfg.Replies { for i, reply := range cfg.Replies {
body := pr.PostView.Post.URL.ValueOr("") + "\n\n" + pr.PostView.Post.Body.ValueOr("")
fmt.Println(body)
re := compiledRegexes[reply.Regex] re := compiledRegexes[reply.Regex]
if !re.MatchString(body) { if !re.MatchString(body) {
continue continue