Browse Source

Fix disabled timers not being disabled

pull/2/head
Jérôme Deuchnord 3 years ago
parent
commit
519f5c5ef8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      _twitchbot/config.py

+ 3
- 1
_twitchbot/config.py View File

@@ -72,7 +72,9 @@ class Timer:
pool = []

for c in param.get('pool', []):
pool.append(Command.from_dict(c))
command = Command.from_dict(c)
if not command.disabled:
pool.append(command)

return Timer(
time_between=param.get('between', {}).get('time', 10),


Loading…
Cancel
Save