mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-19 16:22:10 +00:00
asa
This commit is contained in:
@@ -662,6 +662,8 @@ async def get_random_cyclic_message():
|
|||||||
words.
|
words.
|
||||||
:return: a random cyclic message from the list `cyclic_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)
|
ai_check = random.randint(0,10)
|
||||||
logger.info("Losowa wypowiedź")
|
logger.info("Losowa wypowiedź")
|
||||||
if ai_check < 0:
|
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"
|
"Opowiedz jakąś historię o naszym barze proszę", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
channel_id = 1062047367337095268
|
|
||||||
channel = client.get_channel(channel_id)
|
|
||||||
logger.info("Wtracenie w dyskusje")
|
logger.info("Wtracenie w dyskusje")
|
||||||
messages = [message async for message in channel.history(limit=50)]
|
messages = [message async for message in channel.history(limit=50)]
|
||||||
for message in messages:
|
for message in messages:
|
||||||
|
|||||||
Reference in New Issue
Block a user