Mention help
in the first message in management room
To better guide the user after the first contact, tell him to use `help` to see the list of commands.
This commit is contained in:
parent
0d49bd8d08
commit
ebfc5e214a
@ -98,7 +98,7 @@ func (mx *MatrixHandler) HandleBotInvite(evt *gomatrix.Event) {
|
|||||||
if !hasPuppets {
|
if !hasPuppets {
|
||||||
user := mx.bridge.GetUserByMXID(types.MatrixUserID(evt.Sender))
|
user := mx.bridge.GetUserByMXID(types.MatrixUserID(evt.Sender))
|
||||||
user.SetManagementRoom(types.MatrixRoomID(resp.RoomID))
|
user.SetManagementRoom(types.MatrixRoomID(resp.RoomID))
|
||||||
intent.SendNotice(string(user.ManagementRoom), "This room has been registered as your bridge management/status room.")
|
intent.SendNotice(string(user.ManagementRoom), "This room has been registered as your bridge management/status room. Send `help` to get a list of commands.")
|
||||||
mx.log.Debugln(resp.RoomID, "registered as a management room with", evt.Sender)
|
mx.log.Debugln(resp.RoomID, "registered as a management room with", evt.Sender)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user