From cb26502acd971353e2b2e12562fe8fa9b5f8a4bb Mon Sep 17 00:00:00 2001 From: Lily Wonhalf Date: Sun, 11 Jul 2021 20:40:49 -0400 Subject: [PATCH] Changed welcome message channel --- config.json.sample | 2 +- model/guild.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.json.sample b/config.json.sample index 43a655a..c25e041 100644 --- a/config.json.sample +++ b/config.json.sample @@ -7,7 +7,7 @@ "mod": "" }, "channels": { - "appDiscussion": "" + "joins": "" }, "jira": { "baseUrl": "", diff --git a/model/guild.js b/model/guild.js index b4a1885..d83fc93 100644 --- a/model/guild.js +++ b/model/guild.js @@ -15,14 +15,14 @@ const Guild = { discordGuild: null, /** {TextChannel} */ - appDiscussionChannel: null, + joinsChannel: null, /** {Collection} */ messagesCache: new Discord.Collection(), init: async () => { Guild.discordGuild = bot.guilds.cache.find(guild => guild.id === Config.guild); - Guild.appDiscussionChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.appDiscussion); + Guild.joinsChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.joins); }, /** @@ -159,7 +159,7 @@ const Guild = { }, guildMemberAddHandler: (member) => { - Guild.appDiscussionChannel.send(`Welcome, ${member}! Just so you are aware, we are slowly recovering from a DDoS attack. If you are having trouble connecting to the app, please make sure you are on the latest version. If you are still unable to connect, you can note your switches in <#862595352917442570> so that you have them for when the server has recovered. We thank you for your patience!`) + Guild.joinsChannel.send(`Welcome, ${member}! Just so you are aware, we are slowly recovering from a DDoS attack. If you are having trouble connecting to the app, please make sure you are on the latest version. If you are still unable to connect, you can note your switches in <#862595352917442570> so that you have them for when the server has recovered. We thank you for your patience!`) } };