added tts
This commit is contained in:
parent
d0fcc8c101
commit
5cf7488cf9
1 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue