Coding Global Background
Coding Global

client plb

Archiviert 3 years ago
1
3 Nachrichten
0 Mitglieder
Erstellt 3 years ago
Aktualisiert 3 years ago
In Discord öffnen
E
Z
const { client, IntentsBitField } = require('discord.js');
const token = process.env['token']

const client = new Client({
intents: [
IntentsBitField. Flags.Guilds,
IntentsBitField. Flags.GuildMembers,
IntentsBitField. Flags. GuildMessages,
IntentsBitField. Flags.MessageContent
],
});

client.on('ready', (client) => {
console.log('Bot is Online!')
});

client.on('messageCreate', (message) => {
if (message.content==='hello') message.reply('hey there!')
})

client.login(token)
client plb

Antworten (3)