Updated events
This commit is contained in:
parent
099c8edeed
commit
89a4917986
2 changed files with 12 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
|||
module.exports = (client, interaction) => {
|
||||
|
||||
if (!interaction.isCommand()) return;
|
||||
if (!interaction.isChatInteraction()) return;
|
||||
|
||||
const command = client.commands.get(interaction.commandName);
|
||||
|
||||
if (!command) return void interaction.reply({
|
||||
content: `Command \`${interaction.commandName}\` not found.`,
|
||||
ephemeral: true
|
||||
});
|
||||
if (!command)
|
||||
return void interaction.reply({
|
||||
content: `Command \`${interaction.commandName}\` not found.`,
|
||||
ephermal: true,
|
||||
});
|
||||
|
||||
command.run(client, interaction);
|
||||
};
|
|
@ -3,7 +3,11 @@ module.exports = (client) => {
|
|||
`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!`];
|
||||
const activities = [
|
||||
`Giveaways in ${client.guilds.cache.size} guilds`,
|
||||
"/help",
|
||||
`over ${client.users.cache.size} users!`
|
||||
];
|
||||
setInterval(() => {
|
||||
let activity = activities[Math.floor(Math.random() * activities.length)];
|
||||
client.user.setActivity(activity, { type: "WATCHING" });
|
||||
|
|
Loading…
Reference in a new issue