Improve help page sorting
This commit is contained in:
+14
-8
@@ -51,19 +51,25 @@ commands.help = (sender, args, reply, app, evt) => {
|
|||||||
if (app.managementRooms.includes(evt.room_id)) {
|
if (app.managementRooms.includes(evt.room_id)) {
|
||||||
replyMsg += "This is a management room: prefixing commands with `$cmdprefix` is not required.\n"
|
replyMsg += "This is a management room: prefixing commands with `$cmdprefix` is not required.\n"
|
||||||
} else {
|
} else {
|
||||||
replyMsg += "This is not a management room: you must prefix commands with `$cmdprefix`.\n"
|
replyMsg += "**This is not a management room**: you must prefix commands with `$cmdprefix`.\n"
|
||||||
}
|
}
|
||||||
replyMsg += `
|
replyMsg += `
|
||||||
|
_**Generic bridge commands**: commands for using the bridge that aren't related to Telegram._<br/>
|
||||||
**help** - Show this help message.<br/>
|
**help** - Show this help message.<br/>
|
||||||
**cancel** - Cancel an ongoing action (such as login).
|
**cancel** - Cancel an ongoing action (such as login).<br/>
|
||||||
|
**setManagement** - Mark the room as a management room.<br/>
|
||||||
**login** <_phone_> - Request an authentication code.<br/>
|
|
||||||
**logout** - Log out from Telegram. Currently broken.
|
|
||||||
|
|
||||||
**setManagement** - Mark the room as a management room.
|
|
||||||
**unsetManagement** - Undo management room marking.
|
**unsetManagement** - Undo management room marking.
|
||||||
|
|
||||||
**api** <_method_> <_args_> - Call a Telegram API method. Args is always a JSON object. Disabled by default.
|
_**Telegram actions**: commands for using the bridge to interact with Telegram._<br/>
|
||||||
|
**login** <_phone_> - Request an authentication code.<br/>
|
||||||
|
**logout** - Log out from Telegram.<br/>
|
||||||
|
**search** [_-r|--remote_] <_query_> - Search your contacts or the Telegram servers for users.
|
||||||
|
|
||||||
|
_**Temporary commands**: commands that will be replaced with more Matrix-y actions later._<br/>
|
||||||
|
**pm** <_id_> - Open a private chat with the given Telegram user ID.
|
||||||
|
|
||||||
|
_**Debug commands**: commands to help in debugging the bridge. Disabled by default._<br/>
|
||||||
|
**api** <_method_> <_args_> - Call a Telegram API method. Args is always a single JSON object.
|
||||||
`
|
`
|
||||||
reply(replyMsg, { allowHTML: true })
|
reply(replyMsg, { allowHTML: true })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user