generated from nhcarrigan/template
chore: remove fediverse component
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 46s
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 46s
This commit is contained in:
parent
ad12241ad0
commit
c1421c10f9
1
prod.env
1
prod.env
@ -5,4 +5,3 @@ SLACK_SIGNING_SECRET="op://Environment Variables - Naomi/Mommy/slack_signing_sec
|
|||||||
SLACK_CLIENT_ID="op://Environment Variables - Naomi/Mommy/slack_client_id"
|
SLACK_CLIENT_ID="op://Environment Variables - Naomi/Mommy/slack_client_id"
|
||||||
BSKY_PASSWORD="op://Environment Variables - Naomi/Mommy/bsky_pass"
|
BSKY_PASSWORD="op://Environment Variables - Naomi/Mommy/bsky_pass"
|
||||||
SLACK_STATE_SECRET="op://Environment Variables - Naomi/Mommy/slack_state_secret"
|
SLACK_STATE_SECRET="op://Environment Variables - Naomi/Mommy/slack_state_secret"
|
||||||
FEDI_TOKEN="op://Environment Variables - Naomi/Mommy/mastodon_token"
|
|
15
src/index.ts
15
src/index.ts
@ -74,20 +74,7 @@ scheduleJob("0 9 * * *", async() => {
|
|||||||
await bsky.post({
|
await bsky.post({
|
||||||
text: response,
|
text: response,
|
||||||
});
|
});
|
||||||
await fetch(`https://fedi.nhcarrigan.com/api/notes/create`, {
|
await logger.log("info", "Posted to bsky!");
|
||||||
body: JSON.stringify({
|
|
||||||
text: response,
|
|
||||||
visibility: "public",
|
|
||||||
}),
|
|
||||||
headers: {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention -- Header name.
|
|
||||||
"Authorization": `Bearer ${process.env.FEDI_TOKEN ?? ""}`,
|
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention -- Header name.
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
},
|
|
||||||
method: "POST",
|
|
||||||
});
|
|
||||||
await logger.log("info", "Posted to bsky and fedi!");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
serve();
|
serve();
|
||||||
|
@ -32,9 +32,6 @@ const html = `<!DOCTYPE html>
|
|||||||
<a href="https://bsky.app/profile/mommy.naomi.party" class="social-button bluesky-button" style="display: inline-block; background-color: #0085FF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin: 5px;">
|
<a href="https://bsky.app/profile/mommy.naomi.party" class="social-button bluesky-button" style="display: inline-block; background-color: #0085FF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin: 5px;">
|
||||||
<i class="fab fa-bluesky"></i> Follow on Bluesky
|
<i class="fab fa-bluesky"></i> Follow on Bluesky
|
||||||
</a>
|
</a>
|
||||||
<a href="https://fedi.nhcarrigan.com/@mommy" class="social-button mastodon-button" style="display: inline-block; background-color: #6364FF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin: 5px;">
|
|
||||||
<i class="fab fa-mastodon"></i> Follow on Mastodon
|
|
||||||
</a>
|
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Links</h2>
|
<h2>Links</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user