mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
as
This commit is contained in:
@@ -656,7 +656,7 @@ async def check_data():
|
|||||||
await channel.send(message)
|
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
|
The function `get_random_cyclic_message` returns a random cyclic message from a list of cyclic
|
||||||
words.
|
words.
|
||||||
@@ -664,7 +664,7 @@ def get_random_cyclic_message():
|
|||||||
"""
|
"""
|
||||||
ai_check = random.randint(0,10)
|
ai_check = random.randint(0,10)
|
||||||
logger.info("Losowa wypowiedź")
|
logger.info("Losowa wypowiedź")
|
||||||
if ai_check < 0:
|
if ai_check > 0:
|
||||||
logger.info("Predefiniowana")
|
logger.info("Predefiniowana")
|
||||||
messnum = random.randint(0, len(cyclic_words) - 1)
|
messnum = random.randint(0, len(cyclic_words) - 1)
|
||||||
return cyclic_words[messnum][0]
|
return cyclic_words[messnum][0]
|
||||||
|
|||||||
Reference in New Issue
Block a user