MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / isValid

Function isValid

client/modules/MPDControl.py:53–60  ·  view source on GitHub ↗

Returns True if the input is related to jokes/humor. Arguments: text -- user-input, typically transcribed speech

(text)

Source from the content-addressed store, hash-verified

51
52
53def isValid(text):
54 """
55 Returns True if the input is related to jokes/humor.
56
57 Arguments:
58 text -- user-input, typically transcribed speech
59 """
60 return any(word in text.upper() for word in WORDS)
61
62
63# The interesting part

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected