File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments