Skip to content

adamsimp/slack-connect-4-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Connect 4 Bot

A bot that allows you to play Connect 4 on Slack! Start a game in any channel or private group, and 2 people can play.

Written for fun and to practice new features found in the new ECMAScript 6 JavaScript standard.

Inspired by @CharlieHess/slack-poker-bot.

Getting started

  1. Create a new bot integration here
  2. Run the bot locally, on heroku server or Docker
  3. Start a game using: @<bot-name>: start
  4. Follow the instructions

Running locally

$ git clone [email protected]:wgpsutherland/slack-connect-4-bot.git && cd slack-connect-4-bot
$ npm install
$ npm start

Create token.txt in the root directory and paste in the API token given when creating your bot integration.

Running on Docker

$ docker pull asimpson/slack-connect-4-bot
$ docker run -e "SLACK_CONNECT_4_BOT_TOKEN=YOUR_TOKEN" --name connect4 -d asimpson/slack-connect-4-bot

Deploying to Heroku

$ heroku create
$ heroku config:set SLACK_CONNECT_4_BOT_TOKEN=[Your API token]
$ git push heroku master

Alternatively, you can deploy your own copy with one click using this button:

Deploy

See the Heroku documentation for more info about changing the configuration variables after deployment.

Test

Tests can be run using npm test.

About

A bot that allows you to play Connect 4 on Slack!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%