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