add !pm relay - per-mailbox relay config

This commit is contained in:
Aine
2024-05-02 11:28:37 +03:00
parent 6a63e44bfc
commit ea1533acae
13 changed files with 135 additions and 32 deletions

View File

@@ -3,6 +3,7 @@ package bot
import (
"context"
"fmt"
"net/url"
"regexp"
"sync"
@@ -36,7 +37,7 @@ type Bot struct {
commands commandList
rooms sync.Map
proxies []string
sendmail func(string, string, string) error
sendmail func(string, string, string, *url.URL) error
psdc *psd.Client
cfg *config.Manager
log *zerolog.Logger