From 981cc1bc9210e8d5872eed23decc72850d1ac17a Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 12:56:29 -0400 Subject: [PATCH] Fix undefined var --- src/interactions/leaderAdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index 229f0c09..f73138ed 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -29,7 +29,7 @@ const interactionLeaderAdd = (bot, message) => { } if (!commandUser.club.fields['Slack Channel ID'] != channel) { - console.log(`${commandUser.user} doesn't own this channel`) + console.log(`${user} doesn't own this channel`) bot.whisper(message, transcript('leaderAdd.invalidChannel')) return }