put maximum limit on letters command

This commit is contained in:
iou1name 2020-11-30 15:16:28 -05:00
parent 2c70f5930b
commit 8c13914420

View File

@ -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)