forked from Supositware/Haha-Yes
send message when error
This commit is contained in:
parent
28cf4430d7
commit
2db0e2ef8d
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue