export default {
async scheduled(event, env, ctx) {
ctx.waitUntil(task());
},
};
function task() {
fetch(
'https://canary.discord.com/api/webhooks/:id/:token',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'test',
}),
}
);
}
export default {
async scheduled(event, env, ctx) {
ctx.waitUntil(task());
},
};
function task() {
fetch(
'https://canary.discord.com/api/webhooks/:id/:token',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'test',
}),
}
);
}