From f22330338b738946526bc2ef756dea86aabaf11a Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Mon, 24 Jul 2017 02:42:26 +0300 Subject: [PATCH] greeting: send an empty string as message content for falsy values (such as null) instead --- src/greeting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/greeting.js b/src/greeting.js index af2dc53..53b1f8e 100644 --- a/src/greeting.js +++ b/src/greeting.js @@ -13,7 +13,7 @@ function init(bot) { function sendGreeting(file) { bot.getDMChannel(member.id).then(channel => { if (! channel) return; - channel.createMessage(config.greetingMessage, file); + channel.createMessage(config.greetingMessage || '', file); }); }