Commit ad9780fc authored by evgen moruzhenko's avatar evgen moruzhenko

ref: game class, app config, minor changes.

parent 97b6cccc
......@@ -28,7 +28,7 @@ export class BotGateway {
}
@OnCommand({ name: 'set' })
async onCommandSet(message: Message): Promise<void> {
async onSetCommand(message: Message): Promise<void> {
const position: number = Number(message.toString().split(' ')[1]);
game.setScreen(message);
game.handleCellSelected(position);
......@@ -37,7 +37,7 @@ export class BotGateway {
name: GameMessage.currentPlayerTurn(game.currentPlayer),
value: game.prepareStateArrayToOutput()
});
await message.channel.send(reply);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment