Skip to content

Commit

Permalink
⛏️ Improve all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed Nov 25, 2022
1 parent 1e0c180 commit 370db79
Show file tree
Hide file tree
Showing 78 changed files with 1,278 additions and 1,133 deletions.
9 changes: 6 additions & 3 deletions source/commands/developer/ping.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "ping",
"description": "Check the ping and api latency of the bot.",
"category": "developer",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
};

Expand All @@ -29,7 +29,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
8 changes: 6 additions & 2 deletions source/commands/developer/reload.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { PermissionsBitField } = require("discord.js");
const { readdirSync } = require("node:fs");
const path = require("path");

Expand All @@ -6,7 +7,7 @@ module.exports = {
"description": "Reload the command that doesn't work.",
"category": "developer",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -50,7 +51,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/developer/system.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");
const { version } = require("discord.js");
const { get } = require("systeminformation");

Expand All @@ -7,7 +7,7 @@ module.exports = {
"description": "Get system operating status and more",
"category": "developer",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -166,7 +166,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/developer/uptime.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "uptime",
"description": "Displays the bots current uptime!",
"category": "developer",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -37,7 +37,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/developer/version.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");
const { version } = require('../../../package.json');

module.exports = {
"name": "version",
"description": "Check the current bot version.",
"category": "developer",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand All @@ -26,7 +26,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/fun/dead.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "dead",
"description": "Fake message that says you commit suicide.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand All @@ -26,7 +26,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/fun/eat.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "eat",
"description": "Fake text saying who you are eating.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -39,7 +39,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
14 changes: 10 additions & 4 deletions source/commands/fun/invite.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "invite",
"description": "Create and receive invitation links to join the server.",
"category": "fun",
"permissions": {
"user": ["CREATE_INSTANT_INVITE"],
"client": ["SEND_MESSAGES", "CREATE_INSTANT_INVITE"]
"user": [PermissionsBitField.Flags.CreateInstantInvite],
"client": [
PermissionsBitField.Flags.SendMessages,
PermissionsBitField.Flags.CreateInstantInvite
]
}
}

Expand All @@ -31,7 +34,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
};

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/fun/kill.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "kill",
"description": "Fake messages that say you will kill something.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -33,7 +33,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/fun/meme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js");
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, PermissionsBitField } = require("discord.js");
const { randomInt } = require("../../utils/miscUtils");
const fetch = require("node-fetch");

Expand All @@ -7,7 +7,7 @@ module.exports = {
"description": "Randomly select the meme you want.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -101,7 +101,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 6 additions & 3 deletions source/commands/fun/nekos.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, PermissionsBitField } = require("discord.js");
const fetch = require('node-fetch');

module.exports = {
"name": "nekos",
"description": "Random anime pictures as you want.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
}

Expand Down Expand Up @@ -67,7 +67,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 7 additions & 2 deletions source/commands/fun/numbers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const { PermissionsBitField } = require("discord.js");

module.exports = {
"name": "numbers",
"description": "Random number.",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
};

Expand All @@ -30,7 +32,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
14 changes: 10 additions & 4 deletions source/commands/fun/rip.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
const { AttachmentBuilder } = require("discord.js");
const { AttachmentBuilder, PermissionsBitField } = require("discord.js");

module.exports = {
"name": "rip",
"description": "Send RIP images",
"category": "fun",
"permissions": {
"user": ["ATTACH_FILES"],
"client": ["SEND_MESSAGES", "ATTACH_FILES"]
"user": [PermissionsBitField.Flags.AttachFiles],
"client": [
PermissionsBitField.Flags.SendMessages,
PermissionsBitField.Flags.AttachFiles
]
}
};

Expand All @@ -24,7 +27,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name,
"name_localizations": {
Expand Down
9 changes: 7 additions & 2 deletions source/commands/fun/tableFlip.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const { PermissionsBitField } = require("discord.js");

module.exports = {
"name": "tableFlip",
"description": "(\\\\°□°)\\\\ ┬─┬",
"category": "fun",
"permissions": {
"client": ["SEND_MESSAGES"]
"client": [PermissionsBitField.Flags.SendMessages]
}
};

Expand Down Expand Up @@ -31,7 +33,10 @@ module.exports.command = {
}

module.exports.interaction = {
"enable": true,
"enable": true
}

module.exports.interaction.slash = {
"data": {
"name": module.exports.name.toLowerCase(),
"name_localizations": {
Expand Down
Loading

0 comments on commit 370db79

Please sign in to comment.