Remove debug code
This commit is contained in:
parent
6f8860ba80
commit
37da95522c
5
main.go
5
main.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user