Skip to content

Commit

Permalink
feat: add links command
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Oct 2, 2021
1 parent 7859a15 commit fb0c6cb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 10 deletions.
33 changes: 33 additions & 0 deletions commands/bot/links.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
name: 'links',
description: 'Useful bot links',
async execute(client, message) {
const nog = '<:nog:676105350306594819>';
const gas = '<:gas_new:855788595830194196>';
const aytchSoftware = '<:AytchSoftware:720949593696894996>';
message.channel.send({
embeds: [{
title: 'Links',
fields: [
{
name: `Want to remove ${nog} in your server?`,
value: `${gas} Invite the bot [here](${client.generateInvite(client.config.invite)})`
},
{
name: 'Want to support the bot?',
value: `⬆️ Upvote it [here](${client.config.vote})`
},
{
name: 'Need help?',
value: `${aytchSoftware} Join the Support Server [here](${client.config.support})`
},
{
name: `Do you hate ${nog}?`,
value: `${nog} Join the G Annihilation Squad [here](${client.config.gasServer})`
}
],
color: client.config.color
}]
});
}
};
16 changes: 6 additions & 10 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"prefix": "ha!",
"owners": ["478823932913516544", "682617926909427743", "348591272476540928"],
"botInvite": "https://discord.com/api/oauth2/authorize?client_id=702116355842768927&permissions=470150208&scope=applications.commands%20bot",
"bot": {
"invite": {
"permissions": ["ADD_REACTIONS", "VIEW_CHANNEL", "SEND_MESSAGES", "MANAGE_MESSAGES", "EMBED_LINKS", "ATTACH_FILES", "READ_MESSAGE_HISTORY", "USE_EXTERNAL_EMOJIS", "CHANGE_NICKNAME", "MANAGE_NICKNAMES", "MANAGE_ROLES"],
"scopes": ["bot", "applications.commands"]
}
"invite": {
"permissions": ["ADD_REACTIONS", "VIEW_CHANNEL", "SEND_MESSAGES", "MANAGE_MESSAGES", "EMBED_LINKS", "ATTACH_FILES", "READ_MESSAGE_HISTORY", "USE_EXTERNAL_EMOJIS", "CHANGE_NICKNAME", "MANAGE_NICKNAMES", "MANAGE_ROLES"],
"scopes": ["bot", "applications.commands"]
},
"guildLogs": "854374012667166750",
"botUpvote": "https://top.gg/bot/702116355842768927/vote",
"botLogo": "https://cdn.glitch.com/c5ebb36a-c4ea-424f-a0e6-f74d97f03143%2F701854794989436950.png?1588785225280",
"serverInvite": "https://discord.gg/AbUw9fh",
"docs": "https://h-projects.github.io/docs/bots/gas",
"support": "https://discord.gg/AbUw9fh",
"gasServer": "https://discord.gg/qs9QDW5M5J",
"docs": "https://h-projects.github.io/docs/bots/gas",
"vote": "https://top.gg/bot/702116355842768927/vote",
"color": "RED"
}
32 changes: 32 additions & 0 deletions interactions/commands/links.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
name: 'links',
async execute(client, interaction) {
const nog = '<:nog:676105350306594819>';
const gas = '<:gas_new:855788595830194196>';
const aytchSoftware = '<:AytchSoftware:720949593696894996>';
interaction.reply({
embeds: [{
title: 'Links',
fields: [
{
name: `Want to remove ${nog} in your server?`,
value: `${gas} Invite the bot [here](${client.generateInvite(client.config.invite)})`
},
{
name: 'Want to support the bot?',
value: `⬆️ Upvote it [here](${client.config.vote})`
},
{
name: 'Need help?',
value: `${aytchSoftware} Join the Support Server [here](${client.config.support})`
},
{
name: `Do you hate ${nog}?`,
value: `${nog} Join the G Annihilation Squad [here](${client.config.gasServer})`
}
],
color: client.config.color
}]
});
}
};

0 comments on commit fb0c6cb

Please sign in to comment.