This commit is contained in:
EmotionChild 2021-10-09 12:58:57 +13:00
parent f15e0d831f
commit 75c6d307de
13 changed files with 540 additions and 0 deletions

View file

@ -0,0 +1,14 @@
module.exports = (client, interaction) => {
if (!interaction.isCommand()) return;
const command = client.commands.get(interaction.commandName);
if (!command) return void interaction.reply({
content: `Command \`${interaction.commandName}\` not found.`,
ephemeral: true
});
command.run(client, interaction);
};

12
events/ready.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = (client) => {
console.log(
`Ready to server in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`
);
const activities = [`Giveaways in ${client.guilds.cache.size} guilds`,"g!help",`over ${client.users.cache.size} users!`];
setInterval(() => {
let activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity(activity, { type: "WATCHING" });
}, 20000);
};