MCPcopy Index your code
hub / github.com/tinode/chat / next_quote

Function next_quote

chatbot/python/chatbot.py:129–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127quotes = []
128
129def next_quote():
130 idx = random.randrange(0, len(quotes))
131 # Make sure quotes are not repeated
132 while idx == next_quote.idx:
133 idx = random.randrange(0, len(quotes))
134 next_quote.idx = idx
135 return quotes[idx]
136next_quote.idx = 0
137
138# This is the class for the server-side gRPC endpoints

Callers 1

client_message_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…