mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 22:32:10 +00:00
:)
This commit is contained in:
@@ -70,7 +70,7 @@ MUZYKA_MOJEGO_LUDU_PLAJLISTA = 30
|
|||||||
FILE_SERVICE_ADDRESS = "http://192.168.1.15:5000"
|
FILE_SERVICE_ADDRESS = "http://192.168.1.15:5000"
|
||||||
GET_MP3 = "/mp3"
|
GET_MP3 = "/mp3"
|
||||||
SEND_MP3 = "/update_mp3"
|
SEND_MP3 = "/update_mp3"
|
||||||
TIME_BETWEEN_CALLS = 3
|
TIME_BETWEEN_CALLS = 7200
|
||||||
LAST_SPONTANEOUS_CALL = datetime.now()
|
LAST_SPONTANEOUS_CALL = datetime.now()
|
||||||
|
|
||||||
# *=========================================== Platform Specific Predefines
|
# *=========================================== Platform Specific Predefines
|
||||||
@@ -653,8 +653,8 @@ async def check_data():
|
|||||||
logger.info(tdelta)
|
logger.info(tdelta)
|
||||||
if tdelta > TIME_BETWEEN_CALLS:
|
if tdelta > TIME_BETWEEN_CALLS:
|
||||||
logger.info("Spontaneous call")
|
logger.info("Spontaneous call")
|
||||||
TIME_BETWEEN_CALLS = 60000 #temp random, set after each call
|
TIME_BETWEEN_CALLS = random.randint(7200,172800) #temp random, set after each call
|
||||||
logger.info(TIME_BETWEEN_CALLS)
|
logger.debug(TIME_BETWEEN_CALLS)
|
||||||
LAST_SPONTANEOUS_CALL = datetime.now()
|
LAST_SPONTANEOUS_CALL = datetime.now()
|
||||||
async with channel.typing():
|
async with channel.typing():
|
||||||
message = await get_random_cyclic_message()
|
message = await get_random_cyclic_message()
|
||||||
@@ -673,7 +673,7 @@ async def get_random_cyclic_message():
|
|||||||
channel = client.get_channel(channel_id)
|
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 < 2:
|
||||||
logger.info("Predefiniowana")
|
logger.info("Predefiniowana")
|
||||||
messnum = random.randint(0, len(cyclic_words))
|
messnum = random.randint(0, len(cyclic_words))
|
||||||
logger.debug(messnum)
|
logger.debug(messnum)
|
||||||
@@ -682,7 +682,7 @@ 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 < 6:
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user