mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-23 05:17:02 -04:00
Updates
This commit is contained in:
commit
a64eae919a
20 changed files with 251 additions and 441 deletions
|
@ -62,13 +62,12 @@ export default definePlugin({
|
|||
name: "TextToSpeech",
|
||||
description: "Reads out chat messages with openai tts",
|
||||
authors: [Devs.Samwich],
|
||||
flux:
|
||||
{
|
||||
flux: {
|
||||
async MESSAGE_CREATE({ optimistic, type, message, channelId }) {
|
||||
if (optimistic || type !== "MESSAGE_CREATE") return;
|
||||
if (message.state === "SENDING") return;
|
||||
if (!message.content) return;
|
||||
if (message.channel_id !== getCurrentChannel().id) return;
|
||||
if (message.channel_id !== getCurrentChannel()?.id ?? 0) return;
|
||||
|
||||
readOutText(message.content);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue