Skip to content

lepisma/arwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arwa

https://img.shields.io/github/v/tag/lepisma/arwa.svg?style=flat-square

Abhinav’s Remote Work Automata.

Setup

Environment variables:

  • SLACK_CLASSIC_BOT_USER_TOKEN with classic app permissions for RTM API.
  • SLACK_BOT_USER_TOKEN for bot user use cases.
  • SLACK_USER_TOKEN for regular use cases.

Google Calendar needs credential setup as described here.

Usage

Slack

# 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.

Calendar

# 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

About

Abhinav’s Remote Work Automata

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors