added tts

This commit is contained in:
Loïc Bersier 2018-12-08 01:19:36 +00:00
parent d0fcc8c101
commit 5cf7488cf9

View file

@ -27,6 +27,10 @@ module.exports = class BadMemeCommand extends Command {
if(blacklistJson[message.author.id]) if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message) 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']}) message.say({files: ['./tts.mp3']})
.catch(err => message.say('An error has occured, you probably used invalid char.'))
}, 2000)
}} }}