e lm the nay để hết bắt xác minh địa chỉ email v bn
2025-08-23 11:23:07
0
SVTB.giii• :
làm sao để tải thư viện trên đó vậy
2025-09-29 16:57:57
0
Pmh :
🥰
2026-01-07 16:54:22
0
Doilabekho :
{
2026-05-17 05:38:37
0
BN_Creatures :
😂😂😂
2026-07-11 02:45:43
0
Hrv | HưNgG :
hỗ trợ: https://discord.com/invite/Z6BMGX6tGJ
Code:
**bot.js**
const {
Client,
GatewayIntentBits
} = require('discord.js');
// Tạo một instance mới của Client với các intents cần thiết
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
});
// Thay thế 'YOUR_BOT_TOKEN' bằng token của bot bạn
const token = 'YOUR_BOT_TOKEN';
// Sự kiện khi bot đã sẵn sàng
client.once('ready', () => {
console.log(`Bot đã sẵn sàng! Đã đăng nhập với tên ${client.user.tag}`);
});
// Sự kiện khi nhận được một tin nhắn
client.on('messageCreate', (message) => {
// Bỏ qua tin nhắn từ chính bot
if (message.author.bot) return;
// Gửi !hello Sẽ Kích Hoạt Lệnh "!hello"
if (message.content === '!hello') {
// Trả lời "Hello!"
message.reply('hello bạn');
}
});
// Đăng Nhập Vào Discord
client.login(token);
**package.json**
{
"dependencies": {
"discord.js": "^14.22.0"
}
}
2025-08-22 11:40:21
2
hoteditvds :
**bot.js**
const {
Client,
GatewayIntentBits
} = require('discord.js');
// Tạo một instance mới của Client với các intents cần thiết
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
});
// Thay thế 'YOUR_BOT_TOKEN' bằng token của bot bạn
const token = 'YOUR_BOT_TOKEN';
// Sự kiện khi bot đã sẵn sàng
client.once('ready', () => {
console.log(`Bot đã sẵn sàng! Đã đăng nhập với tên ${client.user.tag}`);
});
// Sự kiện khi nhận được một tin nhắn
client.on('messageCreate', (message) => {
// Bỏ qua tin nhắn từ chính bot
if (message.author.bot) return;
// Gửi !hello Sẽ Kích Hoạt Lệnh "!hello"
if (message.content === '!hello') {
// Trả lời "Hello!"
message.reply('hello bạn');
}
});
// Đăng Nhập Vào Discord
client.login(token);
**package.json**
{
"dependencies": {
"discord.js": "^14.22.0"
}
}
2026-05-07 12:02:29
0
To see more videos from user @hungrero_vn, please go to the Tikwm
homepage.