bitfield whateva
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.MESSAGE_CREATE] });
client.once('ready', () => {
console.log('Ready!');
});
client.on('messageCreate', message => {
if (message.content.startsWith('!c')) {
// Extract level ID from message content
const args = message.content.slice('!c'.length).trim().split(/ +/);
const levelId = args.shift();
// Place your bot logic here, e.g., spam comments on the specified level ID
message.channel.send(`ok ${levelId}...`);
// Add your bot logic here
}
});
client.login('YOUR_BOT_TOKEN');const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.MESSAGE_CREATE] });
client.once('ready', () => {
console.log('Ready!');
});
client.on('messageCreate', message => {
if (message.content.startsWith('!c')) {
// Extract level ID from message content
const args = message.content.slice('!c'.length).trim().split(/ +/);
const levelId = args.shift();
// Place your bot logic here, e.g., spam comments on the specified level ID
message.channel.send(`ok ${levelId}...`);
// Add your bot logic here
}
});
client.login('YOUR_BOT_TOKEN');i know its to do with converting the screaming snake to the new one, but i dont know the name of the new intents, if someone could give me the names id appreciate it