job has multiline formatter
This commit is contained in:
6
main.go
6
main.go
@@ -8,6 +8,7 @@ import (
|
||||
"local/storage"
|
||||
"local/truckstop/broker"
|
||||
"local/truckstop/config"
|
||||
"local/truckstop/message"
|
||||
"log"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -153,7 +154,6 @@ func dropBanlistJobs(jobs []broker.Job) ([]broker.Job, error) {
|
||||
}
|
||||
|
||||
func sendJob(job broker.Job) error {
|
||||
// TODO
|
||||
log.Printf("found job: %s", job)
|
||||
return nil
|
||||
sender := message.NewMatrix()
|
||||
return sender.Send(job.FormatMultilineText())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user