test
This commit is contained in:
parent
33ae51bab6
commit
b49eb11914
3
index.js
3
index.js
@ -41,7 +41,7 @@ for (const folder of commandFolders) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
client.on('ready', () => {
|
client.once('ready', () => {
|
||||||
client.user.setPresence({ activities: [{ name: 'Rygain', type: 'WATCHING' }], status: 'online' });
|
client.user.setPresence({ activities: [{ name: 'Rygain', type: 'WATCHING' }], status: 'online' });
|
||||||
console.log('Bot started !');
|
console.log('Bot started !');
|
||||||
deploy(token);
|
deploy(token);
|
||||||
@ -94,6 +94,7 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on(Events.InteractionCreate, async interaction => {
|
client.on(Events.InteractionCreate, async interaction => {
|
||||||
|
console.log(interaction);
|
||||||
if (!interaction.isChatInputCommand()) return;
|
if (!interaction.isChatInputCommand()) return;
|
||||||
|
|
||||||
const command = interaction.client.commands.get(interaction.commandName);
|
const command = interaction.client.commands.get(interaction.commandName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user