Fixed index.js
This commit is contained in:
parent
f08471d772
commit
61e8e6af04
1 changed files with 10 additions and 8 deletions
18
index.js
18
index.js
|
@ -1,12 +1,14 @@
|
||||||
|
process.title = 'Giveaway Child';
|
||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const client = new Discord.Client({
|
const client = new Discord.Client({
|
||||||
intents: [
|
intents: [
|
||||||
Discord.Intents.FLAGS.GUILDS,
|
Discord.Intents.FLAGS.GUILDS,
|
||||||
Discord.Intents.FLAGS.GUILD_MEMBERS,
|
Discord.Intents.FLAGS.GUILD_MEMBERS,
|
||||||
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
|
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const config = require("./config.json");
|
const config = require("./config.json");
|
||||||
|
@ -25,12 +27,12 @@ client.giveawaysManager = new GiveawaysManager(client, {
|
||||||
lastChance: {
|
lastChance: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
content: "⚠️ **LAST CHANCE TO ENTER !** ⚠️",
|
content: "⚠️ **LAST CHANCE TO ENTER !** ⚠️",
|
||||||
threshold: 10000,
|
threshold: 5000,
|
||||||
embedColor: "#FF0000",
|
embedColor: "#FF0000",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// We not have a client.giveaways property to manage our giveaways
|
// We now have a client.giveawaysManager property to manage our giveaways!
|
||||||
|
|
||||||
client.giveawaysManager.on(
|
client.giveawaysManager.on(
|
||||||
"giveawayReactionAdded",
|
"giveawayReactionAdded",
|
||||||
|
@ -77,7 +79,7 @@ fs.readdir("./commands/", (_err, files) => {
|
||||||
name: c.name,
|
name: c.name,
|
||||||
description: c.description,
|
description: c.description,
|
||||||
options: c.options,
|
options: c.options,
|
||||||
type: Discord.ApplicationCommandType.ChatInput,
|
type: "CHAT_INPUT",
|
||||||
})),
|
})),
|
||||||
{
|
{
|
||||||
debug: true,
|
debug: true,
|
||||||
|
|
Loading…
Reference in a new issue