(count, plugin, request)
| 8 | |
| 9 | @plugin.method("countdown") |
| 10 | def 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 | |
| 19 | plugin.run() |