From aac86d5d7159041d55a9f9c9c8ce3ed6bb5caf30 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 4 Aug 2024 16:02:49 -0400 Subject: [PATCH] Update new guildmember action --- discordBot/events/guildMemberAdd.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discordBot/events/guildMemberAdd.mjs b/discordBot/events/guildMemberAdd.mjs index 2d7c562..7542209 100644 --- a/discordBot/events/guildMemberAdd.mjs +++ b/discordBot/events/guildMemberAdd.mjs @@ -5,7 +5,7 @@ dotenv.config(); import { Events } from 'discord.js'; import { gptHandler } from "../modules/gptHandler.mjs"; -const welcomeChannel = process.env.WELCOME_CHANNEL_ID; +const welcomeChannel = process.env.WELCOME_CHANNEL_ID; // TODO - Need to add a DB section for server configs so it's not static to one server export const name = Events.GuildMemberAdd; @@ -13,8 +13,8 @@ export async function execute(nodeIo, member) { log.INFO("New user joined the server", member); let conversation = []; conversation.push({ - role: 'system', - content: `There has been a new user that joined. Their name is '<@${member.id}>'. Please welcome them to the server and remind them about the rules.` + role: 'assistant', + content: `A new user has joined the server. Their name is '<@${member.id}>'. Please welcome them to the server and remind them about the rules.` }) const response = await gptHandler(conversation);