gajus / gajus/create-index

📄 index.js

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
277
Forks
86
PR merge metrics
No merged PRs in 30d

Description

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);

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.