aio-discord-bot
Version:
All-in-one Discord bot with moderation, economy, games, utilities, and SerpAPI search.
21 lines (18 loc) • 844 B
JavaScript
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('botcode')
.setDescription('📂 Show the GitHub repo of this bot.'),
async execute(interaction) {
const embed = new EmbedBuilder()
.setTitle('🤖 Bot AIO - Source Code')
.setDescription('You can view and contribute to the source code here:')
.addFields(
{ name: '📌 Repository', value: '[GitHub Repo](https://github.com/iamprmgvyt/All-In-One)' },
)
.setColor('Random')
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: interaction.user.displayAvatarURL() })
.setTimestamp();
await interaction.reply({ embeds: [embed] });
},
};