aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-03 00:37:52 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-03-03 00:38:27 +0100
commit334b04798a51363c041d7fd7d441ca90a8658c0f (patch)
treeca26c5eccd17bbf30612f4d37193c72b763f39b0
parent375e33a88130e6f5a56687994c3e5dac3ffb69f6 (diff)
downloadwee-slack-334b04798a51363c041d7fd7d441ca90a8658c0f.tar.gz
Improve help text for /reply and update Commands.md
-rw-r--r--docs/Commands.md16
-rw-r--r--wee_slack.py8
2 files changed, 17 insertions, 7 deletions
diff --git a/docs/Commands.md b/docs/Commands.md
index 9817f64..07e9941 100644
--- a/docs/Commands.md
+++ b/docs/Commands.md
@@ -111,11 +111,21 @@ Reload the history in the current channel.
### reply
```
-/reply <count/message_id> <text>
+/reply [-alsochannel] [<count/message_id>] <message>
```
-Reply in a thread on the message. Specify either the message id
-or a count upwards to the message from the last message.
+
+When in a channel buffer:
+/reply [-alsochannel] <count/message_id> <message>
+Reply in a thread on the message. Specify either the message id or a count
+upwards to the message from the last message.
+
+When in a thread buffer:
+/reply [-alsochannel] <message>
+Reply to the current thread. This can be used to send the reply to the
+rest of the channel.
+
+In either case, -alsochannel also sends the reply to the parent channel.
### showmuted
diff --git a/wee_slack.py b/wee_slack.py
index 9471674..b6494f1 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4040,15 +4040,15 @@ command_thread.completion = '%(threads)'
@utf8_decode
def command_reply(data, current_buffer, args):
"""
- /reply [-alsochannel] [<count/message_id>] <text>
+ /reply [-alsochannel] [<count/message_id>] <message>
When in a channel buffer:
- /reply [-alsochannel] <count/message_id> <text>
+ /reply [-alsochannel] <count/message_id> <message>
Reply in a thread on the message. Specify either the message id or a count
upwards to the message from the last message.
When in a thread buffer:
- /reply [-alsochannel] <text>
+ /reply [-alsochannel] <message>
Reply to the current thread. This can be used to send the reply to the
rest of the channel.
@@ -4069,7 +4069,7 @@ def command_reply(data, current_buffer, args):
try:
msg_id, text = args.split(None, 1)
except ValueError:
- w.prnt('', 'Usage (when in a channel buffer): /reply [-alsochannel] <count/id> <message>')
+ w.prnt('', 'Usage (when in a channel buffer): /reply [-alsochannel] <count/message_id> <message>')
return w.WEECHAT_RC_OK_EAT
msg = get_msg_from_id(channel, msg_id)