Update config

This commit is contained in:
Till Faelligen 2022-02-14 08:58:54 +01:00
parent 09967d12e0
commit 04ecd975a9
2 changed files with 5 additions and 5 deletions

View file

@ -71,12 +71,12 @@ global:
# Server notices allows server admins to send messages to all users.
server_notices:
enabled: false
# The server localpart to be used when sending notices, ensure this is not yet take
# The server localpart to be used when sending notices, ensure this is not yet taken
local_part: "server"
# The displayname to be used when sending notices
display_name: "Server alerts"
# The avatar of this user
avatar: ""
# The mxid of the avatar to use
avatar_url: ""
# The roomname to be used when creating messages
room_name: "Server Alerts"

View file

@ -135,7 +135,7 @@ type ServerNotices struct {
// The displayname to be used when sending notices
DisplayName string `yaml:"display_name"`
// The avatar of this user
Avatar string `yaml:"avatar"`
AvatarURL string `yaml:"avatar"`
// The roomname to be used when creating messages
RoomName string `yaml:"room_name"`
}
@ -145,7 +145,7 @@ func (c *ServerNotices) Defaults(generate bool) {
c.LocalPart = "server"
c.DisplayName = "Server Alert"
c.RoomName = "Server Alert"
c.Avatar = ""
c.AvatarURL = ""
}
}