20 lines
400 B
JavaScript
20 lines
400 B
JavaScript
|
|
||
|
const { webmention } = require('jam-my-stack');
|
||
|
|
||
|
if(!process.env.WEBMENTION_TOKEN) {
|
||
|
throw "No webmention token set!"
|
||
|
}
|
||
|
|
||
|
const wmconfig = {
|
||
|
endpoint: 'https://jam.brainbaking.com',
|
||
|
token: process.env.WEBMENTION_TOKEN
|
||
|
};
|
||
|
|
||
|
(async function() {
|
||
|
// 1. send webmentions
|
||
|
console.log("1. Sending webmentions...")
|
||
|
await webmention.send("jefklakscodex.com", wmconfig)
|
||
|
|
||
|
console.log("-- all done!")
|
||
|
})()
|