This commit is contained in:
Lukian LEIZOUR 2023-03-28 11:45:59 +02:00
parent b4470642f7
commit 61e63896a5

4
app.js
View file

@ -218,15 +218,15 @@ bot.command('addmsg', async ctx => {
}
})
//Discord commands
//Discord events
client.on('ready', () => {
console.log(`[Discord] Logged in as ${client.user.tag} !`);
client.user.setPresence({ activities: [{ name: 'la belle chaise', type : 3}] });
});
discordEvents.newMessage(client);
discordEvents.newInteraction(client);
//bot launch
bot.launch()
client.login(process.env.DISCORD);