(message)
| 22 | |
| 23 | @bot.message_handler(commands=['set']) |
| 24 | def set_timer(message): |
| 25 | args = message.text.split() |
| 26 | if len(args) > 1 and args[1].isdigit(): |
| 27 | sec = int(args[1]) |
| 28 | schedule.every(sec).seconds.do(beep, message.chat.id).tag(message.chat.id) |
| 29 | else: |
| 30 | bot.reply_to(message, 'Usage: /set <seconds>') |
| 31 | |
| 32 | |
| 33 | @bot.message_handler(commands=['unset']) |
nothing calls this directly
no test coverage detected
searching dependent graphs…