Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit f10f1a4

Browse files
authored
remove unneeded stuff
1 parent 42e48b1 commit f10f1a4

File tree

8 files changed

+3
-77
lines changed

8 files changed

+3
-77
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ DISCORD_GUILD_ID=
44
MONGO_DB=
55
GITHUB_ID=
66
GITHUB_SECRET=
7-
webhook=

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:23
1+
FROM node:22
22

33
WORKDIR /app
44

commands/domains.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
}
3838
});
3939
}
40-
fetch("https://raw-api.is-a.dev")
40+
fetch("https://raw.is-a.dev")
4141
.then((response) => response.json())
4242
.then(async (data) => {
4343
for (let i = 0; i < data.length; i++) {

components/webServer.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,6 @@ function keepAlive(client) {
4545
}
4646
});
4747

48-
server.get("/api/appeal", async (req, res) => {
49-
const userId = req.query.userId;
50-
const reason = decodeURIComponent(req.query.reason);
51-
const username = req.query.username;
52-
53-
const appeal = new EmbedBuilder()
54-
.setTitle("Ban Appeal")
55-
.setDescription(`**User:** ${username}\n**Reason:** ${reason}\n **User ID:** ${userId}`)
56-
.setColor("#FF0000");
57-
58-
const channel = client.channels.cache.get("830872946888146964");
59-
const AproveButton = new ButtonBuilder()
60-
.setStyle(ButtonStyle.Success)
61-
.setLabel("Aprove Appeal")
62-
.setCustomId(`aprove-${userId}`);
63-
64-
const DenyButton = new ButtonBuilder()
65-
.setStyle(ButtonStyle.Danger)
66-
.setLabel("Deny Appeal")
67-
.setCustomId(`deny-${userId}`);
68-
69-
const row = new ActionRowBuilder()
70-
.addComponents(AproveButton, DenyButton);
71-
72-
channel.send({embeds: [appeal], components: [row]});
73-
res.send({code: 200, message: "Appeal Submitted Successfully!"});
74-
});
75-
76-
7748
server.get("/auth/handler", async (req, res) => {
7849
const code = req.query.code;
7950
const uuid = req.query.uuid;

events/ButtonEvent.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const registerDomain = require("./buttons/registerDomain")
55
const RecordType = require("./buttons/RecordType")
66
const ConfirmRegister = require("./buttons/ConfirmRegister")
77
const Cancel = require("./buttons/Cancel")
8-
const AproveApeal = require("./buttons/AproveApeal")
98
const Owl = require("./buttons/Owl")
109
module.exports = async function (interaction) {
1110
if (interaction.customId === "deleteDomain") {
@@ -35,7 +34,4 @@ module.exports = async function (interaction) {
3534
if (interaction.customId === "cancel") {
3635
Cancel(interaction);
3736
}
38-
if (interaction.customId.startsWith("aprove-")) {
39-
AproveApeal(interaction);
40-
}
4137
}

events/buttons/AproveApeal.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

events/buttons/ChooseDeleteDomain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = async function (interaction) {
1111
return await interaction.editReply({ embeds: [embed] });
1212
}
1313
const username = data.githubUsername;
14-
fetch("https://raw-api.is-a.dev")
14+
fetch("https://raw.is-a.dev")
1515
.then((response) => response.json())
1616
.then(async (data) => {
1717
let found = false;

events/buttons/DenyApeal.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)