mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 12:16:48 +00:00
Changed welcome message channel
This commit is contained in:
parent
22a546be10
commit
cb26502acd
2 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
"mod": ""
|
"mod": ""
|
||||||
},
|
},
|
||||||
"channels": {
|
"channels": {
|
||||||
"appDiscussion": ""
|
"joins": ""
|
||||||
},
|
},
|
||||||
"jira": {
|
"jira": {
|
||||||
"baseUrl": "",
|
"baseUrl": "",
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,14 @@ const Guild = {
|
||||||
discordGuild: null,
|
discordGuild: null,
|
||||||
|
|
||||||
/** {TextChannel} */
|
/** {TextChannel} */
|
||||||
appDiscussionChannel: null,
|
joinsChannel: null,
|
||||||
|
|
||||||
/** {Collection} */
|
/** {Collection} */
|
||||||
messagesCache: new Discord.Collection(),
|
messagesCache: new Discord.Collection(),
|
||||||
|
|
||||||
init: async () => {
|
init: async () => {
|
||||||
Guild.discordGuild = bot.guilds.cache.find(guild => guild.id === Config.guild);
|
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) => {
|
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!`)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue