added more graceful handling of oversized inputs

This commit is contained in:
Lilith Schier 2026-08-20 18:01:31 +02:00
parent e0cf21d3db
commit 0eec30fe82
3 changed files with 238 additions and 180 deletions

4
src/limits.rs Normal file
View file

@ -0,0 +1,4 @@
pub const MAX_DICE_COUNT_PER_ROLL: usize = 20_000;
pub const RESULT_CULL_CHARACTER_THRESHOLD: usize = 3000;
pub const MAX_DISPLAYED_DICE_PER_MESSAGE: usize = 100;
pub const MAX_ROLL_REPEATS: usize = 35;