Add some log

This commit is contained in:
syuilo 2019-01-23 22:19:21 +09:00
parent 69f271cae5
commit 2bd8b629ff
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -69,6 +69,8 @@ export default class extends Module {
this.subscribeReply(null, false, post.id); this.subscribeReply(null, false, post.id);
this.log('New kazutori game started');
return true; return true;
} }
@ -129,6 +131,8 @@ export default class extends Module {
game.isEnded = true; game.isEnded = true;
this.games.update(game); this.games.update(game);
this.log('Kazutori game finished');
// お流れ // お流れ
if (game.votes.length <= 1) { if (game.votes.length <= 1) {
this.ai.post({ this.ai.post({