Skip to content

spickering-git/tictactoe-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tictactoe

X|O|X O|X|O X|O|X

Supported /slash commands

Create a /tictactoe custom slash command, using the URL: {app-name}.herokuapp.com/commands/tictactoe. Take note of the provided token, this is used to verify requests come from Slack.

  • /tictactoe or /tictactoe help - displays commands
  • /tictactoe start [opponent username] - starts a game against an opponent
  • /tictactoe status - shows the status of the game
  • /tictactoe mark [row] [column] - enters the current users mark on the board
  • /tictactoe quit - quits the current game in the channel, any user in the channel can run this command

Install

$ npm install

Configure

NODE_ENV=development
PORT=3000

Run

$ npm start

tictactoe LIVES on PORT 3000

Visit localhost:3000.

Deploy

Deploy

Or with the Heroku Toolbelt

$ heroku create {optional-app-name}

Creating app... done, stack is cedar-14
https://xxxx.herokuapp.com/

$ git push heroku master
...
remote: -----> Node.js app detected
...
remote:        https://xxxx.herokuapp.com/ deployed to Heroku
...
To https://git.heroku.com/xxxx.git
 * [new branch]      master -> master

$ heroku open

About

tic tac toe for slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published