🤖 Your bot for your secret Gin and tonic club
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
messages.json
package.json
yarn.lock

README.md

gintonic-slack-bot

🤖 Your bot for your secret Gin and tonic club

Instalation

  1. Create a Postgres database
  2. Create a users table with user_name and user_id fields
  3. Create new Slack app, add Slash commands and Bots feautres
  4. Add it to your team and note the Bot User OAuth Access Token from Install App tab
  5. Create a config.json in root with the folowwing stuff:
{
  "token": "{{Verification Token}}",
  "slackToken": "{{Bot User OAuth Access Token}}",
  "dbusername": "{{Postgres username}}",
  "dbpassword": "{{Postgres user}}",
  "dbname": "{{Postgres database}}"
}
  1. Do the npm install or yarn install
  2. Start the app node index.js 🎉

Note: You'll have to configure your slash command

Slash commands

  • join - creates a new user that will be notified on Gin time
  • party - notifies all users that the party started
  • leave - will remove you from users