Fix string issue
parent
cd51b092fc
commit
83624684e6
|
@ -30,7 +30,7 @@ module.exports = async (bot, api) => {
|
||||||
api.respond(message, printf(api.strings.USER_VOICE_CHANGED, userVoice, api.ttsEngines[userEngine].longName));
|
api.respond(message, printf(api.strings.USER_VOICE_CHANGED, userVoice, api.ttsEngines[userEngine].longName));
|
||||||
} else {
|
} else {
|
||||||
userVoice = api.ttsEngines[userEngine].getDefaultVoice();
|
userVoice = api.ttsEngines[userEngine].getDefaultVoice();
|
||||||
api.respond(message, printf(api.strings.INVALID_VOICE, api.announcementVoice, api.announcementEngine.longName));
|
api.respond(message, printf(api.strings.INVALID_VOICE, api.announcementVoice, api.ttsEngines[userEngine].longName));
|
||||||
}
|
}
|
||||||
await api.db.run('update TTSPreferences set engine=?, voice=? where user_id=?', userEngine, userVoice, message.author.id);
|
await api.db.run('update TTSPreferences set engine=?, voice=? where user_id=?', userEngine, userVoice, message.author.id);
|
||||||
} else {
|
} else {
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue