netromdk / slacker

Slacker - Easy access to the Slack API and admin of workspaces/teams.
MIT License
14 stars 0 forks source link

Chat post message, ephemeral, and me commands #81

Closed netromdk closed 6 years ago

netromdk commented 6 years ago

Fixes #80 and #82.

usage: chat.postmessage [-h] [-c CHANNEL] [--as-user] [-u USER]
                        [--no-markdown]
                        text

Post message to a channel on Slack.

positional arguments:
  text                  Text to post.

optional arguments:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        Channel ID to post to.
  --as-user             Post as authed user instead of as bot.
  -u USER, --user USER  Bot user name to use. Must be specified when not using
                        --as-user.
  --no-markdown         Disable Slack markup parsing.
usage: chat.postephemeral [-h] [-c CHANNEL] [-u USER] [--as-user] text

Post ephemeral message to a channel on Slack that is only visible to assigned
user.

positional arguments:
  text                  Text to post.

optional arguments:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        Channel ID to post to.
  -u USER, --user USER  User ID to post ephemeral message to.
  --as-user             Post as authed user instead of as bot.
usage: chat.memessage [-h] [-c CHANNEL] text

Post a me message to a channel on Slack.

positional arguments:
  text                  Text to post.

optional arguments:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        Channel ID to post to.
netromdk commented 6 years ago

I will also add the chat.postephemeral command here.