Skip to content

Commit cb7fc61

Browse files
committed
Reduce response probability in FunnyResponsesHandler
Updated the response condition from a 50% chance to a 10% chance, resulting in less frequent responses and a more selective response mechanism.
1 parent 5fe8e36 commit cb7fc61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Handlers/FunnyResponsesHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private async Task HandleMessageAsync(SocketMessage messageParam)
6464
string chosen = matches.Count == 1 ? matches[0] : matches[random.Next(matches.Count)];
6565

6666
// 50% chance to respond
67-
if (random.NextDouble() >= 0.50)
67+
if (random.NextDouble() >= 0.10)
6868
return;
6969

7070
string reply = chosen switch

0 commit comments

Comments
 (0)