Reverted events files back to v2.1.0

This commit is contained in:
Emotion 2023-03-19 22:50:24 +13:00
parent 356a2e3b90
commit 0e3e367c56
No known key found for this signature in database
GPG key ID: 15EBDFF858B9A65A
2 changed files with 8 additions and 12 deletions

View file

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

View file

@ -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.`
);
const activities = [
`Giveaways in ${client.guilds.cache.size} guilds`,
"/help",
`over ${client.users.cache.size} users!`
];
const activities = [`Giveaways in ${client.guilds.cache.size} guilds`,`over ${client.users.cache.size} users!`];
setInterval(() => {
let activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity(activity, { type: "WATCHING" });