added tts

Commando
Loïc Bersier 6 years ago
parent d0fcc8c101
commit 5cf7488cf9

@ -27,6 +27,10 @@ module.exports = class BadMemeCommand extends Command {
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
speak(text, {format:'mp3', filename:'./tts'});
speak(text, {format:'mp3', filename:'./tts'})
.catch(err => message.say('An error has occured, you probably used an invalid char.'))
setTimeout(function(){
message.say({files: ['./tts.mp3']})
}}
.catch(err => message.say('An error has occured, you probably used invalid char.'))
}, 2000)
}}

Loading…
Cancel
Save