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