mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:33:08 +02:00
✌️
This commit is contained in:
parent
b18e4fea98
commit
0f7a7a4ebb
1 changed files with 6 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue