From 4aef6545b6beef78227446f1d19c6f6f98fba47c Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 24 Jan 2022 19:21:34 +0000 Subject: [PATCH] Getting the URL and PAGE LIMIT set up --- slash/list_projects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slash/list_projects.js b/slash/list_projects.js index f939ba3..0fe9eb2 100644 --- a/slash/list_projects.js +++ b/slash/list_projects.js @@ -15,7 +15,7 @@ exports.run = async (client, interaction) => { prevEmoji: "◀️", // Previous button emoji nextEmoji: "▶️", // Next button emoji lastEmoji: "⏭", // Last button emoji - limit: 2, // number of entries per page + limit: process.env.PER_PAGE, // number of entries per page idle: 30000, // idle time in ms before the pagination closes ephemeral: false, // ephemeral reply prevDescription: "", @@ -36,7 +36,7 @@ exports.run = async (client, interaction) => { sendImmediately: false }).then(function (response) { let data = response.body.result - const pusherFunc = board=>boardList.push({name:"Project Name", value:board.name + "\nID: " + board.id + "\n" + "https://board.grwh.work/board/" + board.id}); + const pusherFunc = board=>boardList.push({name:"Project Name", value:board.name + "\nID: " + board.id + "\n" + "https://" + process.env.ROOT_DOMAIN + "/board/" + board.id}); data.forEach(pusherFunc); console.log(boardList)