diff --git a/.github/scripts/pr-poster.js b/.github/scripts/pr-poster.js index 518a72d7..6dc43c0c 100644 --- a/.github/scripts/pr-poster.js +++ b/.github/scripts/pr-poster.js @@ -142,7 +142,7 @@ async function run() { } ); } else { - let content = ""; + const information = { "Pull Request Link": `https://github.com/${repo}/pull/${prNumber}`, } @@ -157,22 +157,20 @@ async function run() { } ) } + const webhookUrl = process.env.DISCORD_WEBHOOK_SUBMISSIONS; const options = { method: "POST", + url: webhookUrl, headers: { "Content-Type": "application/json" }, - muteHttpExceptions: false, - payload: JSON.stringify({ - content: `New Music Submission from ${user}`, - embeds: embeds_arr, - }), - }; - const webhookUrl = process.env.DISCORD_WEBHOOK; - axios.post(webhookUrl, options) + content: `New Pull Request from ${user}`, + data: JSON.stringify(embeds_arr), + } + axios.post(options) .then(whresp => { console.log('Message sent successfully:', whresp.data); }) - .catch(wherr => { - console.error('Error sending message:', wherr.message); + .catch(error => { + console.log(error.message); process.exit(1); }); } catch (error) { diff --git a/BK CCW Summer.bin b/BK CCW Summer.bin new file mode 100644 index 00000000..1126edeb Binary files /dev/null and b/BK CCW Summer.bin differ diff --git a/BiS Dimble Wood.mp3 b/BiS Dimble Wood.mp3 new file mode 100644 index 00000000..7312874c Binary files /dev/null and b/BiS Dimble Wood.mp3 differ