From 2db0e2ef8de70b8aaf229805d41ca23e1dd23e47 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sat, 8 Dec 2018 21:17:19 +0100 Subject: [PATCH] send message when error --- commands/fun/tts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/fun/tts.js b/commands/fun/tts.js index bb7365f..12bee72 100644 --- a/commands/fun/tts.js +++ b/commands/fun/tts.js @@ -47,6 +47,7 @@ module.exports = class BadMemeCommand extends Command { fs.writeFile('tts.mp3', response.audioContent, 'binary', err => { if (err) { console.error('ERROR:', err); + message.say('An error has occured, the message is probably too long') return; } console.log('Audio content written to file: tts.mp3');