creation code initial

This commit is contained in:
louhane delforge 2025-11-20 15:19:33 +01:00
parent f1ea9a03a5
commit 20db4f3192
5 changed files with 361 additions and 1 deletions

23
app.js Normal file
View file

@ -0,0 +1,23 @@
const { Client, Events, GatewayIntentBits } = require('discord.js');
let discord_app_token = '...';
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers
]
});
client.once(Events.MessageCreate, (message) => {
if(message.content.toLocaleLowerCase().includes("quoi")) {
message.reply(`feur !`);
}
});
client.once(Events.ClientReady, () => {
console.log(`Hello World !`);
});
client.login(discord_app_token);