const { Client, GatewayIntentBits, EmbedBuilder } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds]
});
client.once('ready', () => {
console.log('Bot online');
});
client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'regras') {
const embed = new EmbedBuilder()
.setTitle('🦖 Regras — The Isle EVRIMA')
.setColor(0x2f3136)
.setDescription(
'Semi-Realismo\n\n' +
'• Respeito obrigatório\n' +
'• Dino tem valor\n' +
'• Sem cheats\n' +
'• Sem mixpack\n' +
'• Sem revenge kill\n'
)
.setFooter({ text: 'Servidor Semi-Realismo EVRIMA' });
await interaction.reply({ embeds: [embed] });
}
});
client.login(process.env.TOKEN);
const { Client, GatewayIntentBits, EmbedBuilder } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds]
});
client.once('ready', () => {
console.log('Bot online');
});
client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'regras') {
const embed = new EmbedBuilder()
.setTitle('🦖 Regras — The Isle EVRIMA')
.setColor(0x2f3136)
.setDescription(
'Semi-Realismo\n\n' +
'• Respeito obrigatório\n' +
'• Dino tem valor\n' +
'• Sem cheats\n' +
'• Sem mixpack\n' +
'• Sem revenge kill\n'
)
.setFooter({ text: 'Servidor Semi-Realismo EVRIMA' });
}
});
client.login(process.env.TOKEN);