greeting: send an empty string as message content for falsy values (such as null) instead

master
Miikka Virtanen 2017-07-24 02:42:26 +03:00
parent 77b4ed856d
commit f22330338b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
}