21 lines
438 B
JavaScript
21 lines
438 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...")
|
|
const since = await webmention.send("redzuurdesem.be", wmconfig)
|
|
console.log(` -- done`)
|
|
|
|
console.log("-- all done!")
|
|
})()
|