feat: add bell sound to public msg

This commit is contained in:
izenynn 2022-07-07 13:49:11 +02:00
parent f62e591523
commit cc26a3c05d

View File

@ -215,6 +215,9 @@ func (u *User) render(m Message) string {
return ""
} else {
out += m.RenderFor(cfg)
if cfg.Systembell {
out += Bel
}
}
case *PrivateMsg:
out += m.Render(cfg.Theme)
@ -273,6 +276,7 @@ func (u *User) Send(m Message) error {
type UserConfig struct {
Highlight *regexp.Regexp
Bell bool
Systembell bool
Quiet bool
Echo bool // Echo shows your own messages after sending, disabled for bots
Timeformat *string
@ -285,9 +289,10 @@ var DefaultUserConfig UserConfig
func init() {
DefaultUserConfig = UserConfig{
Bell: true,
Echo: true,
Quiet: false,
Bell: true,
Systembell: false,
Echo: true,
Quiet: false,
}
// TODO: Seed random?