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)