multiple discord senders

This commit is contained in:
2026-01-20 20:58:18 +01:00
parent 76933a04d8
commit 53e6eecb3f
9 changed files with 100 additions and 69 deletions

13
lib/message.go Normal file
View File

@@ -0,0 +1,13 @@
package lib
import "fmt"
type Message struct {
Channel string
Title string
URL string
}
func (m Message) ToDiscord() string {
return fmt.Sprintf("[%s](%s)", m.Title, m.URL)
}