38 lines
1.7 KiB
JavaScript
38 lines
1.7 KiB
JavaScript
module.exports = {
|
|
|
|
name: require('path').parse(__filename).name,
|
|
description: 'Add Anitrox to your beautiful server!',
|
|
options: [],
|
|
|
|
async parseMessage (client, config, message) {
|
|
await message.channel.send(this.handle(client, config, message.author));
|
|
},
|
|
|
|
async parseInteraction (client, config, interaction) {
|
|
await interaction.reply(this.handle(client, config, interaction.user));
|
|
},
|
|
|
|
handle (_, config, user) {
|
|
return {
|
|
embeds: [{
|
|
title: 'Woaaaa, New Server!',
|
|
description: 'Weather you want stable, or a dev build we gotchu.',
|
|
color: 9442302,
|
|
footer: {
|
|
icon_url: user.displayAvatarURL(),
|
|
text: config.footerTxt
|
|
},
|
|
thumbnail: {
|
|
url: 'https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png'
|
|
},
|
|
fields: [
|
|
{ name: 'Anitrox', value: 'Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8)' },
|
|
{ name: 'Anitrox Dev, Self hosting and more! (Recommended.)', value: 'Self-host your own Anitrox (including dev!), Contribute, and more! The possibilites are endless. [Anitrox Source](https://github.com/IDeletedSystem64/anitrox)' },
|
|
{ name: 'Need help?', value: 'Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)' },
|
|
{ name: ':exclamation: Attention!', value: "Anitrox may stop receiving updates soon, It's best that you self-host or look for an alternative Discord bot. [Learn More](https://system64.dev/anitrox-notice.txt)"}
|
|
]
|
|
}]
|
|
};
|
|
}
|
|
};
|