Fix _on_choose

This commit is contained in:
AlberLC
2022-10-22 21:09:07 +02:00
parent 81c8c5b6d9
commit 81c9868460

View File

@@ -409,7 +409,7 @@ class FlanaBot(MultiBot, ABC):
n2 = flanautils.words_to_numbers(options[i + 1], ignore_no_numbers=False) n2 = flanautils.words_to_numbers(options[i + 1], ignore_no_numbers=False)
except KeyError: except KeyError:
continue continue
if options[i] in ('al', 'el', 'to'): if options[i] in ('al', 'to'):
await self.send(random.randint(math.ceil(n1), math.floor(n2)), message) await self.send(random.randint(math.ceil(n1), math.floor(n2)), message)
return return
await self.send(random.choice(options), message) await self.send(random.choice(options), message)