Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jim/otp
Scripts to add a phone icon to your Slack name when you're on a call.
https://github.com/jim/otp
applescript osx ruby slack
Last synced: 7 days ago
JSON representation
Scripts to add a phone icon to your Slack name when you're on a call.
- Host: GitHub
- URL: https://github.com/jim/otp
- Owner: jim
- Created: 2017-03-14T20:24:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T21:24:48.000Z (almost 7 years ago)
- Last Synced: 2024-12-01T22:37:56.515Z (2 months ago)
- Topics: applescript, osx, ruby, slack
- Language: Ruby
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
This hodgepodge of scripts will append a phone icon to the end of your Slack last name, so that it appears like "Firstname Lastname 📞" when you are on a Zoom, Skype, or appear.in call.
## Prerequisites
* You need a recent version of Ruby and Rubygems installed.
* This program requires the `osascript` executable that ships on OS X.
* `otp_start.sh` assumes you are using chruby to manage Ruby versions. It will probably need to be adjusted for other Ruby version managers.## Setup
1. Run `bundle` within the project directory to install all Ruby dependencies.
2. Go to System Preferences > Security & Privacy > Accessibility > Privacy and add Terminal.app to the list of apps allowed to control your computer.
3. Go to [this page](https://api.slack.com/docs/oauth-test-tokens) and request a Slack testing token. The admin of your
slack account will need to approve this request.4. Add the token from #1 to a `.env` file like this:
```
TOKEN=the-testing-token-from-slack
```5. Run `bundle exec ruby get_slack_user_id.rb` and add the value that is
printed out to `.env`:```
TOKEN=the-testing-token-from-slack
USER_ID=ABCD1234
```6. Then run `bundle exec ruby otp.rb` to start the script. You can use `DEBUG=1 bundle exec ruby otp.rb` if things aren't working and you want some debug output.