Skip to content
Prev Previous commit
Next Next commit
setting up a layout for commands
  • Loading branch information
James Taber authored and James Taber committed May 20, 2018
commit 342e9baf205afc0b2631ce050bbc8d74a28a2a6f
17 changes: 16 additions & 1 deletion bot/controllers/games.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,19 @@ const Command = require('../baseCommand.js');
const util = require('apex-util');

class GamesController extends BaseController {
}
constructor(message) {
super(message);
const controller = this;

this.commands = [
new Command(
'!8ball',
),
new Command(
'coinFlip',
),
];
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible solution to this would be to use async / await for the fetch, that way the reply waits for the joke to return before posting.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function is already an async function

module.exports = GamesController;