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!`) } };