I'm a dumbass, fixed for real ffs

master
guilevi 2021-05-02 19:01:14 +02:00
parent a74cf74574
commit 5882be1e43
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module.exports = async (bot, api) => {
api.respond(message, printf(api.strings.USER_VOICE_CHANGED, userVoice, api.ttsEngines[userEngine].longName));
} else {
userVoice = api.ttsEngines[userEngine].getDefaultVoice();
api.respond(message, printf(api.strings.INVALID_VOICE, api.announcementVoice, api.ttsEngines[userEngine].longName));
api.respond(message, printf(api.strings.INVALID_VOICE, userVoice, api.ttsEngines[userEngine].longName));
}
await api.db.run('update TTSPreferences set engine=?, voice=? where user_id=?', userEngine, userVoice, message.author.id);
} else {