diff --git a/index.js b/index.js index 9573237..9b19b04 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import { REST, Routes, Client, Events, GatewayIntentBits } from 'discord.js'; +import { REST, Routes, Client, Events, GatewayIntentBits, EmbedBuilder } from 'discord.js'; import { spawn } from "node:child_process"; import { mkdir, cp } from 'node:fs/promises'; @@ -52,7 +52,9 @@ client.on(Events.MessageCreate, async interaction => { if (chunk.toString().length > 1) { let str = chunk.toString(); str = str.replaceAll(/user:([0-9]+)/g, '<@$1>'); - (channels[id] || interaction.channel).send(str); + + const exampleEmbed = new EmbedBuilder().setColor(0x0099FF).setDescription(str); + (channels[id] || interaction.channel).send({ embeds: [exampleEmbed] }); } }); sessions[id].on('close', () => {