summaryrefslogtreecommitdiff
path: root/src/api/bot
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/bot')
-rw-r--r--src/api/bot/core.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/api/bot/core.ts b/src/api/bot/core.ts
index 6042862d39..ca5f5b89eb 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<string> {
+ constructor(bot: BotCore) {
+ super(bot);
+
this.othello = new Othello();
+ }
+
+ public async greet(): Promise<string> {
return this.othello.toPatternString('black');
}