put maximum limit on letters command
This commit is contained in:
parent
2c70f5930b
commit
8c13914420
|
@ -64,6 +64,9 @@ def rand_letters(bot, trigger):
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
return bot.reply("Arguments must be of integer type")
|
return bot.reply("Arguments must be of integer type")
|
||||||
|
|
||||||
|
if num_letters > 200:
|
||||||
|
num_letters = 200
|
||||||
|
|
||||||
msg = []
|
msg = []
|
||||||
for _ in range(num_letters):
|
for _ in range(num_letters):
|
||||||
c = random.choice(string.ascii_lowercase + "aioue" * num_vowels)
|
c = random.choice(string.ascii_lowercase + "aioue" * num_vowels)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user