Abhinav’s Remote Work Automata.
Environment variables:
SLACK_CLASSIC_BOT_USER_TOKENwith classic app permissions for RTM API.SLACK_BOT_USER_TOKENfor bot user use cases.SLACK_USER_TOKENfor regular use cases.
Google Calendar needs credential setup as described here.
# For inviting everyone in a channel
arwa slack bulk-invite <channel-name>
# For exporting all messages from a conversation in a jsonlines file
arwa slack export conversations --conversation-id=<conversation-id> --output-jsonl=<output-jsonl>
# For dumping workspace user information
arwa slack export users --output-json=output-json
# For posting a text message to a channel (by name)
arwa slack post --text-file=<text-file> --channel-name=<channel-name>These commands require various scopes that can be figured out once the API throws error. Though I should document them under each command’s help.
# For showing breakdown of calendar hours
arwa calendar report abhinav@vernacular.ai╒════════════╤════════════╤═══════════════╤══════════════════╤════════════╤═════════╤══════════╕ │ Start │ End │ Total Hours │ Personal Block │ External │ 1:1 │ Rest │ ╞════════════╪════════════╪═══════════════╪══════════════════╪════════════╪═════════╪══════════╡ │ 2021-07-18 │ 2021-07-25 │ 47.3333 │ 10.5 │ 0.916667 │ 16.9167 │ 19 │ ├────────────┼────────────┼───────────────┼──────────────────┼────────────┼─────────┼──────────┤ │ 2021-07-25 │ 2021-08-01 │ 28 │ 2.83333 │ 1.25 │ 13.9167 │ 10 │ ├────────────┼────────────┼───────────────┼──────────────────┼────────────┼─────────┼──────────┤ │ 2021-08-01 │ 2021-08-08 │ 28.6667 │ 7 │ 1 │ 10.9167 │ 9.75 │ ├────────────┼────────────┼───────────────┼──────────────────┼────────────┼─────────┼──────────┤ │ 2021-08-08 │ 2021-08-15 │ 19.3333 │ 1 │ 1 │ 9 │ 8.33333 │ ├────────────┼────────────┼───────────────┼──────────────────┼────────────┼─────────┼──────────┤ │ 2021-08-15 │ 2021-08-22 │ 20.25 │ 1 │ 0 │ 10.9167 │ 8.33333 │ ╘════════════╧════════════╧═══════════════╧══════════════════╧════════════╧═════════╧══════════╛
# For adding pre and post focus time block before meetings
arwa calendar focus-wrap