commit c8d13389f076c208d54e7df686f5f0d815b4465c
parent 1ba8e43ef045ed903af370e7c4b9e9be6ea21319
Author: torresjrjr <b.torres.edu@gmail.com>
Date: Tue, 14 Apr 2020 21:48:11 +0100
Fix /random command
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bot.py b/bot.py
@@ -74,7 +74,7 @@ def get_random_example():
raise Exception("No '%TOTAL N' on first line of examples.tex")
else:
total_examples = int( line.split()[1] )
- example_number = random.randint(9, total_examples)
+ example_number = random.randint(1, total_examples)
print("Example number", example_number)
for line in File: