MCPcopy Create free account
hub / github.com/ElementsProject/lightning / countdown

Function countdown

tests/plugins/countdown.py:10–16  ·  view source on GitHub ↗
(count, plugin, request)

Source from the content-addressed store, hash-verified

8
9@plugin.method("countdown")
10def countdown(count, plugin, request):
11 count = int(count)
12 for i in range(count):
13 time.sleep(0.1)
14 request.notify("{}/{}".format(i, count), "INFO")
15
16 return "Done"
17
18
19plugin.run()

Callers

nothing calls this directly

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected