This commit is contained in:
2024-03-29 22:16:53 +01:00
parent a239af2041
commit fe025be64f
+2 -2
View File
@@ -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]