mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 14:22:13 +00:00
Hejka
This commit is contained in:
@@ -682,24 +682,22 @@ async def get_random_cyclic_message():
|
|||||||
return cyclic_words[mess_key][0]
|
return cyclic_words[mess_key][0]
|
||||||
ai_check2 = random.randint(0,10)
|
ai_check2 = random.randint(0,10)
|
||||||
global MESSAGE_TABLE
|
global MESSAGE_TABLE
|
||||||
if ai_check2 > 10:
|
if ai_check2 < 10:
|
||||||
logger.info("Dykteryjka")
|
logger.info("Dykteryjka")
|
||||||
result, MESSAGE_TABLE = await handle_response(
|
result, MESSAGE_TABLE = await handle_response(
|
||||||
"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"
|
||||||
)
|
)
|
||||||
logger.info(result)
|
logger.info(result)
|
||||||
asyncio.wait(7000)
|
|
||||||
else:
|
else:
|
||||||
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:
|
||||||
temp = {"role": "user", "content": str(message.author) + ":" + str(message.content)}
|
temp = {"role": "user", "content": str(message.author) + ":" + str(message.content)}
|
||||||
MESSAGE_TABLE.append(temp)
|
MESSAGE_TABLE.append(temp)
|
||||||
result, MESSAGE_TABLE = await handle_response(
|
result, MESSAGE_TABLE = await handle_response(
|
||||||
"A jaka jest Twoja opinia na temat dotychczasowej dyskusji?", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
"A jaka jest Twoja opinia na temat dotychczasowej dyskusji?", True, True, MESSAGE_TABLE, "Polish Hammer", "RANDOM"
|
||||||
)
|
)
|
||||||
logger.info(result)
|
logger.info(result)
|
||||||
asyncio.wait(7000)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user