print('Live mode')
dryrun = False
+ elif command == 'idle':
+ # idle
+ m = re.match(r'\bidle\s+(\d+)\b', raw.lower())
+ if m is None:
+ yield from say(message.channel, 'Sorry!')
+ return
+
+ idletime = int(m.group(1))
+
elif command == 'rss':
# rss
m = re.match(r'\brss\s+(\d+)\b', raw.lower())
'admin': {
'fn': do_commands,
'args': [False],
- 'commands': ['avatar', 'debug', 'delete', 'dryrun', 'rss']
+ 'commands': ['avatar', 'debug', 'delete', 'dryrun', 'idle', 'rss']
},
'any': {
'fn': do_commands,