diff --git a/bot.py b/bot.py index 675b0a5..ecbc1c9 100644 --- a/bot.py +++ b/bot.py @@ -656,7 +656,7 @@ async def check_data(): await channel.send(message) -def get_random_cyclic_message(): +async def get_random_cyclic_message(): """ The function `get_random_cyclic_message` returns a random cyclic message from a list of cyclic words. @@ -664,7 +664,7 @@ def get_random_cyclic_message(): """ ai_check = random.randint(0,10) logger.info("Losowa wypowiedź") - if ai_check < 0: + if ai_check > 0: logger.info("Predefiniowana") messnum = random.randint(0, len(cyclic_words) - 1) return cyclic_words[messnum][0]