Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/prepaid-card-slack-bot
Slack bot monitoring a prepaid card status: funds and internet bandwidth left
https://github.com/ertrzyiks/prepaid-card-slack-bot
Last synced: about 1 month ago
JSON representation
Slack bot monitoring a prepaid card status: funds and internet bandwidth left
- Host: GitHub
- URL: https://github.com/ertrzyiks/prepaid-card-slack-bot
- Owner: ertrzyiks
- Created: 2019-04-28T17:18:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T21:41:19.000Z (about 2 years ago)
- Last Synced: 2024-12-07T19:36:04.812Z (about 1 month ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prepaid card slack bot
Monitor the funds and other resources related to my prepaid SIM card
account managed by Plus operator.## Installation
1. Install yarn dependencies
```
yarn install
```2. Install [puppeteer](https://github.com/GoogleChrome/puppeteer) OS dependencies.
They are listed in `apt-packages` in this repo as well.3. Set all the env variables from `lib/config.js` file and start the server
```
yarn start
```## How it works
It's a regular scrapper, but to log in to the admin area we need not only
a login/password but also a one-time password sent by SMS. The flow is following:1. Bot sends a request via Slack on a scheduled basis
2. Once the request is approved, starts the headless Chrome and try to log in
3. Meanwhile opens a Slack dialog waiting for a session password
4. User receives the session password over SMS and types in the Slack dialog
5. Headless Chrome uses the password and proceeds with the account checks.## Dependencies
- https://github.com/F4-Group/dokku-apt