Update ready.js
ID Support, Boolean Changes
This commit is contained in:
1 parent
9e63e0ff09
commit
aff7ff1451
1 file changed
+6
-6
+6
-6
@@ -20,8 +20,8 @@ module.exports = async (bot) => {
|
|||||||
console.log(`\u001b[37m`, `${supportbot.Bot_Name} has successfully connected to discord`)
|
console.log(`\u001b[37m`, `${supportbot.Bot_Name} has successfully connected to discord`)
|
||||||
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
||||||
|
|
||||||
if (supportbot.ReactionTickets === true) {
|
if (supportbot.ReactionTickets) {
|
||||||
let chan1 = bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel)
|
let chan1 = bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel) || bot.channels.cache.find(channel => channel.id === supportbot.ReactionChannel)
|
||||||
|
|
||||||
if (!chan1) {
|
if (!chan1) {
|
||||||
console.log('\u001b[33m', "[WARN] Ticket reaction panel is not setup, You can do so via the configuration file!")
|
console.log('\u001b[33m', "[WARN] Ticket reaction panel is not setup, You can do so via the configuration file!")
|
||||||
@@ -34,19 +34,19 @@ module.exports = async (bot) => {
|
|||||||
.setColor(supportbot.SuccessColour)
|
.setColor(supportbot.SuccessColour)
|
||||||
.setFooter(supportbot.EmbedFooter);
|
.setFooter(supportbot.EmbedFooter);
|
||||||
|
|
||||||
if (supportbot.ReactionPanel_Description === true) {
|
if (supportbot.ReactionPanel_Description) {
|
||||||
embed.setDescription(supportbot.ReactionDescription)
|
embed.setDescription(supportbot.ReactionDescription)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportbot.ReactionPanel_Thumbnail === true) {
|
if (supportbot.ReactionPanel_Thumbnail) {
|
||||||
embed.setThumbnail(supportbot.ReactionThumbnail)
|
embed.setThumbnail(supportbot.ReactionThumbnail)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportbot.ReactionPanel_Image === true) {
|
if (supportbot.ReactionPanel_Image) {
|
||||||
embed.setImage(supportbot.ReactionImage)
|
embed.setImage(supportbot.ReactionImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel).send({
|
chan1.send({
|
||||||
embed: embed
|
embed: embed
|
||||||
}).then(r => {
|
}).then(r => {
|
||||||
let data = {
|
let data = {
|
||||||
|
|||||||
Reference in new issue
Block a user