From 699d0ea4e0f5a2d48a5e41c647cbbfa793983b48 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 25 Feb 2020 20:46:24 +0200 Subject: Update readme and /help --- ui/commands.go | 56 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 25 deletions(-) (limited to 'ui/commands.go') diff --git a/ui/commands.go b/ui/commands.go index 0adbb61..0f07e94 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -284,31 +284,39 @@ func cmdUnknownCommand(cmd *Command) { } func cmdHelp(cmd *Command) { - cmd.Reply(`/help - Show the temporary help message. - -/quit - Quit gomuks. -/clearcache - Clear cache and quit gomuks. -/logout - Log out of Matrix. - -/me - Send an emote message. -/rainbow - Send a rainbow message (markdown not supported). - -/create [room name] - Create a room. -/pm <...> - Create a private chat with the given user(s). -/join - Join a room. -/leave - Leave the current room. - -/invite - Invite a user. + cmd.Reply(`# General +/help - Show this "temporary" help message. +/quit - Quit gomuks. +/clearcache - Clear cache and quit gomuks. +/logout - Log out of Matrix. +/toggle - Temporary command to toggle various UI features. + +Things: rooms, users, baremessages, images, typingnotif + +# Sending special messages +/me - Send an emote message. +/notice - Send a notice (generally used for bot messages). +/rainbow - Send rainbow text (markdown not supported). +/rainbowme - Send rainbow text in an emote. + +# Rooms +/pm <...> - Create a private chat with the given user(s). +/create [room name] - Create a room. + +/join [server] - Join a room. +/accept - Accept the invite. +/reject - Reject the invite. + +/invite - Invite the given user to the room. +/roomnick - Change your per-room displayname. +/tag - Add the room to . +/untag - Remove the room from . +/tags - List the tags the room is in. + +/leave - Leave the current room. /kick [reason] - Kick a user. /ban [reason] - Ban a user. -/unban - Unban a user. - -/send - Send a custom event to the given room. -/msend - Send a custom event to the current room. -/setstate - Send a custom event to the given room. -/msetstate - Send a custom event to the current room. - -/toggle - Temporary command to toggle various UI features.`) +/unban - Unban a user.`) } func cmdLeave(cmd *Command) { @@ -432,7 +440,6 @@ func cmdMSendEvent(cmd *Command) { } func cmdSendEvent(cmd *Command) { - debug.Print(cmd.Command, cmd.Args, len(cmd.Args)) if len(cmd.Args) < 3 { cmd.Reply("Usage: /send ") return @@ -440,7 +447,6 @@ func cmdSendEvent(cmd *Command) { roomID := cmd.Args[0] eventType := mautrix.NewEventType(cmd.Args[1]) rawContent := strings.Join(cmd.Args[2:], " ") - debug.Print(roomID, eventType, rawContent) var content interface{} err := json.Unmarshal([]byte(rawContent), &content) -- cgit v1.2.3