mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
a
This commit is contained in:
@@ -646,11 +646,11 @@ async def check_data():
|
||||
"*Przeciąga się za barem* No dobra - porobione to można dalej pi... *Zauważa spojrzenie Hammera* eprzyć o głupotach z klientami... Szefie... *Bierze 'ukradkowy' łyk z piersiówki*"
|
||||
)
|
||||
global LAST_SPONTANEOUS_CALL
|
||||
global TIME_BETWEEN_CALLS
|
||||
tdelta = datetime.now() - LAST_SPONTANEOUS_CALL
|
||||
logger.info(TIME_BETWEEN_CALLS)
|
||||
tdelta = tdelta.total_seconds()
|
||||
logger.info(tdelta)
|
||||
global TIME_BETWEEN_CALLS
|
||||
if tdelta > TIME_BETWEEN_CALLS:
|
||||
logger.info("Spontaneous call")
|
||||
TIME_BETWEEN_CALLS = 60000 #temp random, set after each call
|
||||
|
||||
Reference in New Issue
Block a user