mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 12:47:35 +01:00
Fix speak command broken
This commit is contained in:
parent
278b526898
commit
e2593215bf
@ -1206,8 +1206,8 @@ $(document).ready(function () {
|
|||||||
eventSource.makeLast(event_types.USER_MESSAGE_RENDERED, onMessageEvent);
|
eventSource.makeLast(event_types.USER_MESSAGE_RENDERED, onMessageEvent);
|
||||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||||
name: 'speak',
|
name: 'speak',
|
||||||
callback: () => {
|
callback: async (args, value) => {
|
||||||
onNarrateText();
|
await onNarrateText(args, value);
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
aliases: ['narrate', 'tts'],
|
aliases: ['narrate', 'tts'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user