This commit is contained in:
2024-03-29 22:30:17 +01:00
parent 673e70d190
commit c23a57c368
+2 -2
View File
@@ -662,6 +662,8 @@ async def get_random_cyclic_message():
words.
:return: a random cyclic message from the list `cyclic_words`.
"""
channel_id = 1062047367337095268
channel = client.get_channel(channel_id)
ai_check = random.randint(0,10)
logger.info("Losowa wypowiedź")
if ai_check < 0:
@@ -679,8 +681,6 @@ async def get_random_cyclic_message():
"Opowiedz jakąś historię o naszym barze proszę", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
)
else:
channel_id = 1062047367337095268
channel = client.get_channel(channel_id)
logger.info("Wtracenie w dyskusje")
messages = [message async for message in channel.history(limit=50)]
for message in messages: