Coding Global Background
Coding Global

client plb

Archived 3 years ago
1
3 messages
0 members
Created 3 years ago
Updated 3 years ago
Open in Discord
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

Replies (3)