Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.6 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.6 KB

Bill McCash Slack Bot 💰

Bill is a bot that reports you the current money exchange rate via Slack. Now supports cryptocurrencies 😃.

Dependencies

  • Node
  • Yarn

Slack Integrations

Installation

# install dependencies
yarn install

# build
yarn build
# or
npm run build

Configuration

All of the environment variables are stored in the src/env-example.js file. Rename this file to src/env.js.

Cron-style Scheduling

If you wish to schedule automated posts, then you can use the integrated cron scheduler. Add the configuration to the env.js file. The cron format consists of:

*    *    *    *    *    *
┬    ┬    ┬    ┬    ┬    ┬
│    │    │    │    │    |
│    │    │    │    │    └ day of week (0 - 7) (0 or 7 is Sun)
│    │    │    │    └───── month (1 - 12)
│    │    │    └────────── day of month (1 - 31)
│    │    └─────────────── hour (0 - 23)
│    └──────────────────── minute (0 - 59)
└───────────────────────── second (0 - 59, OPTIONAL)

Initializing

Run build and start dist/index.js file

# start server
npm start

Enjoy 😃

Collaborate!

Do you have a question? Found an issue? Tell us!