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'); }