From 0f7a7a4ebb1cbb8b3c1d983b9bf7db5e0d8362e5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Oct 2017 03:36:34 +0900 Subject: [PATCH] :v: --- src/api/bot/core.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/bot/core.ts b/src/api/bot/core.ts index 6042862d3..ca5f5b89e 100644 --- a/src/api/bot/core.ts +++ b/src/api/bot/core.ts @@ -275,8 +275,13 @@ class PostContext extends Context { class OthelloContext extends Context { private othello: Othello = null; - public async greet(): Promise { + constructor(bot: BotCore) { + super(bot); + this.othello = new Othello(); + } + + public async greet(): Promise { return this.othello.toPatternString('black'); }