Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jul 10, 2023
1 parent 96062f5 commit 7e36464
Show file tree
Hide file tree
Showing 30 changed files with 74 additions and 123 deletions.
49 changes: 0 additions & 49 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/buttons/to-do-list/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = {
.setTimestamp()

try {
await message.edit({ embeds: [list] });
await message.edit({ embeds: [list] });
} catch {}
}
})
Expand Down
16 changes: 8 additions & 8 deletions src/commands/dev/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const Task = require("../../models/Task");
const User = require("../../models/User");

module.exports = {
name: "admin",
description: "Admin Commands",
name: "admin",
description: "Admin Commands",
options: [
{
type: 1,
Expand Down Expand Up @@ -136,7 +136,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const logsChannel = client.channels.cache.get(client.config_channels.logs);

Expand All @@ -160,7 +160,7 @@ module.exports = {

const donators = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
.setTitle("💸 Donators")
.setTitle("💸 Donators")
.setDescription(`<@${users.join(">, <@")}>`)

await interaction.editReply({ embeds: [donators] });
Expand All @@ -187,7 +187,7 @@ module.exports = {

const immuneUsers = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
.setTitle("🔒 Immune Users")
.setTitle("🔒 Immune Users")
.setDescription(`<@${users.join(">, <@")}>`)

await interaction.editReply({ embeds: [immuneUsers] });
Expand Down Expand Up @@ -320,7 +320,7 @@ module.exports = {
)

try {
await appealChannel.send({ embeds: [embed], components: [buttons] });
await appealChannel.send({ embeds: [embed], components: [buttons] });

const sent = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
Expand Down Expand Up @@ -396,7 +396,7 @@ module.exports = {
)

try {
await appealChannel.send({ embeds: [list], components: [row1, row2] });
await appealChannel.send({ embeds: [list], components: [row1, row2] });

const sent = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
Expand Down Expand Up @@ -507,7 +507,7 @@ module.exports = {

const verifiedUsers = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
.setTitle("✅ Verified Users")
.setTitle("✅ Verified Users")
.setDescription(`<@${users.join(">, <@")}>`)

await interaction.editReply({ embeds: [verifiedUsers] });
Expand Down
6 changes: 3 additions & 3 deletions src/commands/dev/announce.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const announce = require("../../util/announce");
const emoji = require("../../config.json").emojis;

module.exports = {
name: "announce",
description: "[DEVELOPER ONLY] Make an announcement.",
name: "announce",
description: "[DEVELOPER ONLY] Make an announcement.",
options: [],
default_member_permissions: null,
botPermissions: [],
Expand All @@ -13,7 +13,7 @@ module.exports = {
hidden: true,
deferReply: false,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const modal = new Discord.ModalBuilder()
.setCustomId(`modal-${interaction.id}`)
Expand Down
6 changes: 3 additions & 3 deletions src/commands/dev/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const fetch = require("node-fetch");
const SentryCapture = require("../../models/SentryCapture");

module.exports = {
name: "sentry",
description: "Manage Sentry",
name: "sentry",
description: "Manage Sentry",
options: [
{
type: 1,
Expand Down Expand Up @@ -67,7 +67,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
if(interaction.options.getSubcommand() === "capture-info") {
const actions = new Discord.ActionRowBuilder()
Expand Down
6 changes: 3 additions & 3 deletions src/commands/info/developers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const User = require("../../models/User");

module.exports = {
name: "developers",
description: "Get a list of all the developers.",
name: "developers",
description: "Get a list of all the developers.",
options: [],
default_member_permissions: null,
botPermissions: [],
Expand All @@ -14,7 +14,7 @@ module.exports = {
hidden: false,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const data = await User.find({ dev: true });

Expand Down
6 changes: 3 additions & 3 deletions src/commands/info/moderators.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const User = require("../../models/User");

module.exports = {
name: "moderators",
description: "Get a list of all the moderators.",
name: "moderators",
description: "Get a list of all the moderators.",
options: [],
default_member_permissions: null,
botPermissions: [],
Expand All @@ -14,7 +14,7 @@ module.exports = {
hidden: false,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const data = await User.find({ mod: true });

Expand Down
6 changes: 3 additions & 3 deletions src/commands/info/ping.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const emoji = require("../../config.json").emojis;

module.exports = {
name: "ping",
description: "Check the bot's latency.",
name: "ping",
description: "Check the bot's latency.",
options: [],
default_member_permissions: null,
botPermissions: [],
Expand All @@ -12,7 +12,7 @@ module.exports = {
hidden: false,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const pinging = new Discord.EmbedBuilder()
.setColor(client.config_embeds.default)
Expand Down
6 changes: 3 additions & 3 deletions src/commands/mod/appeal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const Appeal = require("../../models/Appeal");
const BannedUser = require("../../models/BannedUser");

module.exports = {
name: "appeal",
description: "Appeal Management Commands",
name: "appeal",
description: "Appeal Management Commands",
options: [
{
type: 1,
Expand Down Expand Up @@ -47,7 +47,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const modLogsChannel = client.channels.cache.get(client.config_channels.modLogs);

Expand Down
6 changes: 3 additions & 3 deletions src/commands/mod/appeals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const Appeal = require("../../models/Appeal");

module.exports = {
name: "appeals",
description: "[MODERATOR ONLY] Get all appeals related to a user.",
name: "appeals",
description: "[MODERATOR ONLY] Get all appeals related to a user.",
options: [
{
type: 6,
Expand All @@ -21,7 +21,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const user = interaction.options.getUser("user");

Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const modLogsChannel = client.channels.cache.get(client.config_channels.modLogs);

Expand Down
6 changes: 3 additions & 3 deletions src/commands/mod/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const Filter = require("../../models/Filter");

module.exports = {
name: "filter",
description: "Manage the bot's filters.",
name: "filter",
description: "Manage the bot's filters.",
options: [
{
type: 1,
Expand Down Expand Up @@ -113,7 +113,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
if(interaction.options.getSubcommand() === "add") {
const word = interaction.options.getString("word");
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/unban.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const modLogsChannel = client.channels.cache.get(client.config_channels.modLogs);

Expand Down
6 changes: 3 additions & 3 deletions src/commands/owner/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const User = require("../../models/User");

module.exports = {
name: "dev",
description: "Manage the developer role.",
name: "dev",
description: "Manage the developer role.",
options: [
{
type: 1,
Expand Down Expand Up @@ -42,7 +42,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const logsChannel = client.channels.cache.get(client.config_channels.logs);

Expand Down
6 changes: 3 additions & 3 deletions src/commands/owner/donator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const User = require("../../models/User");

module.exports = {
name: "donator",
description: "Manage the donator role.",
name: "donator",
description: "Manage the donator role.",
options: [
{
type: 1,
Expand Down Expand Up @@ -42,7 +42,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const logsChannel = client.channels.cache.get(client.config_channels.logs);
const user = interaction.options.getUser("user");
Expand Down
6 changes: 3 additions & 3 deletions src/commands/owner/eval.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const emoji = require("../../config.json").emojis;

module.exports = {
name: "eval",
description: "[OWNER ONLY] Evaluate code on the bot.",
name: "eval",
description: "[OWNER ONLY] Evaluate code on the bot.",
options: [
{
type: 3,
Expand All @@ -20,7 +20,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: false,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const input = interaction.options.getString("code");

Expand Down
6 changes: 3 additions & 3 deletions src/commands/owner/immunity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const emoji = require("../../config.json").emojis;
const User = require("../../models/User");

module.exports = {
name: "immunity",
description: "Manage immunity to moderator commands.",
name: "immunity",
description: "Manage immunity to moderator commands.",
options: [
{
type: 1,
Expand Down Expand Up @@ -42,7 +42,7 @@ module.exports = {
hidden: true,
deferReply: true,
ephemeral: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const user = interaction.options.getUser("user");
const logsChannel = client.channels.cache.get(client.config_channels.logs);
Expand Down
4 changes: 2 additions & 2 deletions src/context-menu/message/Delete Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const Message = require("../../models/Message");
const User = require("../../models/User");

module.exports = {
name: "Delete Message",
name: "Delete Message",
type: 3,
default_member_permissions: null,
botPermissions: [],
requiredRoles: [],
cooldown: 5,
enabled: true,
async execute(interaction, client, Discord) {
async execute(interaction, client, Discord) {
try {
const message = interaction.targetMessage;
const modLogsChannel = client.channels.cache.get(client.config_channels.modLogs);
Expand Down
Loading

0 comments on commit 7e36464

Please sign in to comment.