From 831eb77380ad4c9ac2d8fd7e3b6166d68cf8a591 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Sun, 1 Jan 2017 06:17:47 +0200 Subject: [PATCH] Add debug logging for created channels --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 1036007..bd0bbbb 100644 --- a/index.js +++ b/index.js @@ -535,6 +535,10 @@ bot.registerCommand('logs', (msg, args) => { }); }); +bot.on('channelCreate', channel => { + console.log(`[NOTE] Got channel creation event for #${channel.name} (ID ${channel.id})`); +}); + bot.connect(); /*