djs-builder 0.6.36 ā 0.6.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/function/giveaway.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1536,10 +1536,6 @@ const endTimeMs = Date.now() + durationMs;
|
|
|
1536
1536
|
} found)`;
|
|
1537
1537
|
|
|
1538
1538
|
|
|
1539
|
-
giveaways.forEach((g) => {
|
|
1540
|
-
Gdelete(g.messageId);
|
|
1541
|
-
})
|
|
1542
|
-
|
|
1543
1539
|
if (listContent.length <= MAX_MESSAGE_LENGTH) {
|
|
1544
1540
|
// Output as a simple message (Under 2000 chars)
|
|
1545
1541
|
return interaction.editReply({
|
package/function/giveaway.js
CHANGED
|
@@ -53,6 +53,7 @@ async function Gstart({
|
|
|
53
53
|
emoji: emoji = false,
|
|
54
54
|
label: label = false,
|
|
55
55
|
style: style = false,
|
|
56
|
+
id : id = false
|
|
56
57
|
},
|
|
57
58
|
}) {
|
|
58
59
|
if (!winers) winers = 1;
|
|
@@ -67,7 +68,7 @@ async function Gstart({
|
|
|
67
68
|
row = CreateRow([
|
|
68
69
|
[
|
|
69
70
|
{
|
|
70
|
-
id: "djs-builder-giveaway",
|
|
71
|
+
id: id || "djs-builder-giveaway",
|
|
71
72
|
style: style || 1,
|
|
72
73
|
label: label,
|
|
73
74
|
emoji: emoji,
|
|
@@ -212,7 +213,7 @@ async function giveaway_end(client, g, type) {
|
|
|
212
213
|
await message.reply({
|
|
213
214
|
content: `š **Giveaway Ended!**\n> Winner(s):\n- <@${winners
|
|
214
215
|
.map((u) => `${u}`)
|
|
215
|
-
.join("
|
|
216
|
+
.join(">, <@")}>`,
|
|
216
217
|
});
|
|
217
218
|
|
|
218
219
|
await giveaway.findOneAndUpdate(
|
|
@@ -257,9 +258,9 @@ async function Greroll(client, messageId) {
|
|
|
257
258
|
const winners = pickWinners(users_id, g.winersNumber);
|
|
258
259
|
|
|
259
260
|
await message.reply({
|
|
260
|
-
content: `šļø **Giveaway Reroll!**\n>
|
|
261
|
+
content: `šļø **Giveaway Reroll!**\n> Winner(s):\n- <@${winners
|
|
261
262
|
.map((u) => `${u}`)
|
|
262
|
-
.join("
|
|
263
|
+
.join(">, <@")}>`,
|
|
263
264
|
});
|
|
264
265
|
|
|
265
266
|
let new_endType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "djs-builder",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.37",
|
|
4
4
|
"note": "š Package Update! š„\n\n- Add Giveaway System š \n\n- š Fixes:\n- Minor bugs fixed\n- Improved stability and error handling\n\nš Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
|
|
5
5
|
"description": "š Package Update! š„",
|
|
6
6
|
"main": "handler/starter.js",
|