@@ -26,7 +26,7 @@ export class RandomReact {
return false;
if(Math.random() < reactInfo.reactProbability) {
- await timeout(Math.random() * 10000);
+ await timeout(Math.random() * reactInfo.maxWaitMs);
await msg.react(emote);
}
@@ -11,4 +11,7 @@ export class RandomMessageReaction {
@Column({ type: "decimal", default: 0.0 })
reactProbability: number;
+
+ @Column({ type: "decimal", default: 0.0 })
+ maxWaitMs: number;