Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New bin 4 #78

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/scripts/pr-poster.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async function run() {
}
);
} else {
let content = "";

const information = {
"Pull Request Link": `https://github.com/${repo}/pull/${prNumber}`,
}
Expand All @@ -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) {
Expand Down
Binary file added BK CCW Summer.bin
Binary file not shown.
Binary file added BiS Dimble Wood.mp3
Binary file not shown.
Loading