Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 814 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 814 Bytes

SlackScheduleMessage

Utility for calling chat.scheduleMessage API of Slack

Set up

Create a slack app and generate your User OAuth Token

Create your Slack app and generate your User OAuth Token with the User Token Scopes below:

  • channels:read
  • channels:write
  • chat:write

https://api.slack.com/apps

Then, put the token to user_oatuh_token.txt.

Add user to all the channels in your workspace

add_user_to_all_channels.sh

Prepare scheduled message list

Please see the example in test.jsonl.

Let's post scheduled messages

post_scheduled_messages.sh < test.jsonl

You can view all scheduled messages

show_scheduled_messages.sh

You will probably have to delete all scheduled messages

delete_all_scheduled_messages.sh