Fix speak command broken

This commit is contained in:
Cohee 2024-06-23 15:44:53 +03:00
parent 278b526898
commit e2593215bf
1 changed files with 2 additions and 2 deletions

View File

@ -1206,8 +1206,8 @@ $(document).ready(function () {
eventSource.makeLast(event_types.USER_MESSAGE_RENDERED, onMessageEvent);
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
name: 'speak',
callback: () => {
onNarrateText();
callback: async (args, value) => {
await onNarrateText(args, value);
return '';
},
aliases: ['narrate', 'tts'],