X|O|X O|X|O X|O|X
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
$ npm install
NODE_ENV=development
PORT=3000
$ npm start
tictactoe LIVES on PORT 3000
Visit localhost:3000.
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