MCPcopy Create free account
hub / github.com/RobotTelevision/CrowAssistant / tupdate

Function tupdate

CrowAssistant.py:336–361  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

334 print("Recording stopped!")
335
336def tupdate(text):
337 global stopplayback
338 global brain
339 global saidname
340 global current_conversation_id
341 global Sleeping
342 global crow
343 global is_talking
344 global listening
345 print(text)
346 if Sleeping:
347 if(contains_word(text.lower(),config.config['name'].lower())):
348 print("wake")
349 Sleeping = False
350 crow.SleepTimer = 0
351 else:
352 crow.SleepTimer = 0
353 if is_talking:
354 if(contains_word(text.lower(),config.config['name'].lower()) and not saidname):
355 #stop current playback
356 print("INTERUPT")
357 stopplayback=True
358 brain.addSystemMessage("[Interupted]",current_conversation_id)
359 return
360 else:
361 listening=True
362
363def transcriptstart():
364 global crow

Callers

nothing calls this directly

Calls 2

contains_wordFunction · 0.85
addSystemMessageMethod · 0.80

Tested by

no test coverage detected