Skip to content

Commit 4c239bf

Browse files
committed
Remove erasable syntax
1 parent 6b52505 commit 4c239bf

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/commands/special/keywordReact.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ export default class TriggerReactOnKeyword implements SpecialCommand {
77
name = "ReactTrigger";
88
description = "Trigger a Bot reaction on keyword";
99
cooldownTime = 300000;
10+
readonly keyword: string;
11+
readonly emoteName: string;
12+
readonly randomness: number;
1013

11-
constructor(
12-
public readonly keyword: string,
13-
public readonly emoteName: string,
14-
public readonly randomness = 0.2,
15-
) {}
14+
constructor(keyword: string, emoteName: string, randomness = 0.2) {
15+
this.keyword = keyword;
16+
this.emoteName = emoteName;
17+
this.randomness = randomness;
18+
}
1619

1720
matches(message: ProcessableMessage): boolean {
1821
return message.content.toLowerCase().includes(this.keyword);

0 commit comments

Comments
 (0)