Skip to content

Commit 7a55dc9

Browse files
authored
Merge pull request #400 from TotallyNotRobots/add-enable-option
Add enabled config option
2 parents 0028b6f + 048c7f1 commit 7a55dc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudbot/bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ async def _init_routine(self):
300300
self.observer.start()
301301

302302
for conn in self.connections.values():
303-
conn.active = True
303+
if conn.config.get("enabled", True):
304+
conn.active = True
304305

305306
# Connect to servers
306307
await asyncio.gather(

0 commit comments

Comments
 (0)