aboutsummaryrefslogtreecommitdiff
path: root/commands/about.js
blob: c0efcfa88f7ff87b6a4bd961694290ebf643d576 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { SlashCommandBuilder, EmbedBuilder, version } from 'discord.js';
import { release, platform } from 'node:os'

export default {
    data: new SlashCommandBuilder()
        .setName('about')
        .setDescription('Gets information about Shrimpbot'),
    async execute(interaction, bot) {
        const aboutEmbed = new EmbedBuilder()
            .setImage('https://cdn.discordapp.com/attachments/344244531274711042/1055302911980220436/Banner_18.png')
            .addFields(
                { name: 'ShrimpBot 18.2022.12.21 (NO ROYCE\'S ANIME FANTASY EDITION)', value: 'by Alee (JS Edition), Squid Grill (C# Edition) (and open source contributors)' },
                { name: 'Hosting', value: `Node.JS ${process.version}\nDiscord.JS ${version}\n${platform().charAt(0).toUpperCase() + platform().slice(1)} ${release()}` },
                { name:'Links', value:'Official ShrimpBot Discord Server: https://discord.gg/fuJ6J4s\nGitHub Repository: https://github.com/Alee14/shrimpbot-js' }
            )
            .setFooter({ text: 'Thank you for using ShrimpBot! ❤' })
            .setColor('#338BC1')
        return await interaction.reply({ embeds: [aboutEmbed] });
    }
};