mirror of
https://github.com/arthur-pbty/LazyBot.git
synced 2026-06-10 17:24:10 +02:00
add Discord Bot
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
const { Client, GatewayIntentBits } = require("discord.js");
|
||||
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
||||
|
||||
client.once("ready", () => {
|
||||
console.log(`Bot connecté en tant que ${client.user.tag}`);
|
||||
});
|
||||
|
||||
client.login(process.env.BOT_TOKEN);
|
||||
|
||||
module.exports = client;
|
||||
Reference in New Issue
Block a user