MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / __init__

Method __init__

utils_bot.py:12–17  ·  view source on GitHub ↗
(self, interval, action)

Source from the content-addressed store, hash-verified

10
11class setInterval:
12 def __init__(self, interval, action):
13 self.interval = interval
14 self.action = action
15 self.stopEvent = threading.Event()
16 thread = threading.Thread(target=self.__setInterval)
17 thread.start()
18
19 def __setInterval(self):
20 nextTime = time.time() + self.interval

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected