From 8c139144200e35c0f818ab40bb905eb6d40c81c1 Mon Sep 17 00:00:00 2001 From: iou1name Date: Mon, 30 Nov 2020 15:16:28 -0500 Subject: [PATCH] put maximum limit on letters command --- modules/rand.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/rand.py b/modules/rand.py index 6d920e3..c8e3dce 100755 --- a/modules/rand.py +++ b/modules/rand.py @@ -64,6 +64,9 @@ def rand_letters(bot, trigger): except (ValueError, TypeError): return bot.reply("Arguments must be of integer type") + if num_letters > 200: + num_letters = 200 + msg = [] for _ in range(num_letters): c = random.choice(string.ascii_lowercase + "aioue" * num_vowels)