mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 12:16:48 +00:00
Added welcome message to inform of DDoS attack
This commit is contained in:
parent
53fb1a7169
commit
b8a0f5f003
3 changed files with 19 additions and 11 deletions
|
|
@ -7,6 +7,13 @@
|
|||
"mod": ""
|
||||
},
|
||||
"channels": {
|
||||
"staff": ""
|
||||
"appDiscussion": ""
|
||||
},
|
||||
"jira": {
|
||||
"baseUrl": "",
|
||||
"issueTypes": {
|
||||
"bug": 10005,
|
||||
"task": 10002
|
||||
}
|
||||
}
|
||||
}
|
||||
5
event/bot/guild-member-add.js
Normal file
5
event/bot/guild-member-add.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const Guild = require('../../model/guild');
|
||||
|
||||
module.exports = async (member) => {
|
||||
Guild.guildMemberAddHandler(member);
|
||||
};
|
||||
|
|
@ -15,22 +15,14 @@ const Guild = {
|
|||
discordGuild: null,
|
||||
|
||||
/** {TextChannel} */
|
||||
modsReviewChannel: null,
|
||||
|
||||
/** {TextChannel} */
|
||||
speakerReviewChannel: null,
|
||||
|
||||
/** {TextChannel} */
|
||||
officeChannel: null,
|
||||
appDiscussionChannel: null,
|
||||
|
||||
/** {Collection} */
|
||||
messagesCache: new Discord.Collection(),
|
||||
|
||||
init: async () => {
|
||||
Guild.discordGuild = bot.guilds.cache.find(guild => guild.id === Config.guild);
|
||||
Guild.modsReviewChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.modsReview);
|
||||
Guild.speakerReviewChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.speakerReview);
|
||||
Guild.officeChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.office);
|
||||
Guild.appDiscussionChannel = Guild.discordGuild.channels.cache.find(channel => channel.id === Config.channels.appDiscussion);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -164,6 +156,10 @@ const Guild = {
|
|||
certain,
|
||||
foundMembers
|
||||
};
|
||||
},
|
||||
|
||||
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 <#862775075626287176> so that you have them for when the server has recovered. We thank you for your patience!`)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue