Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add probabilistic disruptor #5

Closed
wants to merge 4 commits into from
Closed

Conversation

erkinalp
Copy link

@erkinalp erkinalp commented Sep 1, 2021

Resolves #4
Signed-off-by: Erkin Alp Güney [email protected]

Resolves maubot#4
Signed-off-by: Erkin Alp Güney <[email protected]>
Signed-off-by: Erkin Alp Güney <[email protected]>
@@ -134,9 +136,11 @@ async def start(self):
self.manual_user_ratelimits = defaultdict(lambda: ManualRateLimit(
rate=float(self.config["user_ratelimit.rate"]),
per=float(self.config["user_ratelimit.per"])))
self.disrupt_probability = float(self.config["disrupt_probability"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would make more sense as an input to the MonologueInfo constructor.

@tulir tulir closed this in 6e172a1 May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add random chance of disrupting monologue
2 participants