added more achievments

This commit is contained in:
DeSqBlocki
2026-08-22 22:10:41 +02:00
parent ae35f61522
commit ca823726e3
12 changed files with 4977 additions and 1998 deletions
-60
View File
@@ -1,60 +0,0 @@
const {
EmbedBuilder
} = require("discord.js");
function delay(ms) {
return new Promise(
resolve =>
setTimeout(
resolve,
ms
)
);
}
module.exports = {
name:
"abort",
description:
"abort it",
async execute(
interaction
) {
const embed =
new EmbedBuilder()
.setTitle(
"Close"
)
.setDescription(
"Closing..."
);
await interaction.update({
embeds: [
embed
],
components: []
});
await delay(
2000
);
try {
await interaction.deleteReply();
}
catch {
// Ignore if already deleted/expired.
}
}
}
+91
View File
@@ -0,0 +1,91 @@
const {
EmbedBuilder
} = require(
"discord.js"
);
const {
temporaryEphemeralReply
} = require(
"../../utils/cookieEconomy"
);
const {
getCrumbSaucerSessionOwner
} = require(
"../../utils/crumbSaucer"
);
function delay(
ms
) {
return new Promise(
resolve =>
setTimeout(
resolve,
ms
)
);
}
module.exports = {
name:
"crumbSaucerClose",
async execute(
interaction
) {
const ownerId =
getCrumbSaucerSessionOwner(
interaction
);
if (
ownerId !==
interaction.user.id
) {
return temporaryEphemeralReply(
interaction,
{
content:
"This isn't your Crumb Saucer session."
}
);
}
const embed =
new EmbedBuilder()
.setTitle(
"Closed"
)
.setDescription(
"Closing Crumb Saucer..."
);
await interaction.update({
embeds: [
embed
],
components: []
});
await delay(
1500
);
try {
await interaction.deleteReply();
}
catch {}
}
};
+3 -3
View File
@@ -1,7 +1,7 @@
const {
collectCookies
collectCookiesFromSaucer
} = require(
"../../commands/applications/cookies"
"../../utils/crumbCollect"
);
@@ -13,7 +13,7 @@ module.exports = {
async execute(
interaction
) {
return collectCookies(
return collectCookiesFromSaucer(
interaction
);
}
+20
View File
@@ -0,0 +1,20 @@
const {
showCollectPage
} = require(
"../../utils/crumbCollect"
);
module.exports = {
name:
"crumbSaucerCollectMenu",
async execute(
interaction
) {
return showCollectPage(
interaction
);
}
};