Yes
This commit is contained in:
parent
f15e0d831f
commit
75c6d307de
13 changed files with 540 additions and 0 deletions
14
events/interactionCreate.js
Normal file
14
events/interactionCreate.js
Normal 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
12
events/ready.js
Normal 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);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue