creation code initial
This commit is contained in:
parent
f1ea9a03a5
commit
20db4f3192
5 changed files with 361 additions and 1 deletions
23
app.js
Normal file
23
app.js
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue