2025-11-20 19:43:33 +01:00
|
|
|
require('dotenv').config();
|
|
|
|
|
|
2025-11-20 15:19:33 +01:00
|
|
|
const { Client, Events, GatewayIntentBits } = require('discord.js');
|
|
|
|
|
|
|
|
|
|
const client = new Client({
|
|
|
|
|
intents: [
|
|
|
|
|
GatewayIntentBits.Guilds,
|
|
|
|
|
GatewayIntentBits.GuildMessages,
|
|
|
|
|
GatewayIntentBits.MessageContent,
|
|
|
|
|
GatewayIntentBits.GuildMembers
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
2025-11-20 20:32:09 +01:00
|
|
|
/*
|
2025-11-20 20:01:49 +01:00
|
|
|
client.on(Events.MessageCreate, (message) => {
|
2025-11-20 15:19:33 +01:00
|
|
|
if(message.content.toLocaleLowerCase().includes("quoi")) {
|
2025-11-20 20:01:49 +01:00
|
|
|
message.reply(message.content.replace("quoi","feur"));
|
2025-11-20 15:19:33 +01:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2025-11-20 20:01:49 +01:00
|
|
|
client.on(Events.ClientReady, () => {
|
2025-11-20 15:19:33 +01:00
|
|
|
console.log(`Hello World !`);
|
|
|
|
|
});
|
2025-11-20 20:32:09 +01:00
|
|
|
*/
|
2025-11-20 19:43:33 +01:00
|
|
|
client.login(process.env.DISCORDTOKEN);
|