mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 05:48:35 +00:00
Hejka
This commit is contained in:
@@ -682,24 +682,22 @@ async def get_random_cyclic_message():
|
||||
return cyclic_words[mess_key][0]
|
||||
ai_check2 = random.randint(0,10)
|
||||
global MESSAGE_TABLE
|
||||
if ai_check2 > 10:
|
||||
if ai_check2 < 10:
|
||||
logger.info("Dykteryjka")
|
||||
result, MESSAGE_TABLE = await handle_response(
|
||||
"Opowiedz jakąś historię o naszym barze proszę", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
||||
)
|
||||
logger.info(result)
|
||||
asyncio.wait(7000)
|
||||
else:
|
||||
logger.info("Wtracenie w dyskusje")
|
||||
messages = [message async for message in channel.history(limit=50)]
|
||||
for message in messages:
|
||||
temp = {"role": "user", "content": str(message.author) + ":" + str(message.content)}
|
||||
MESSAGE_TABLE.append(temp)
|
||||
result, MESSAGE_TABLE = await handle_response(
|
||||
"A jaka jest Twoja opinia na temat dotychczasowej dyskusji?", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
||||
)
|
||||
logger.info(result)
|
||||
asyncio.wait(7000)
|
||||
result, MESSAGE_TABLE = await handle_response(
|
||||
"A jaka jest Twoja opinia na temat dotychczasowej dyskusji?", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
||||
)
|
||||
logger.info(result)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user