Runs every 15 min
1
2
3
4
5
6
7
8
9
10
import { getThreadsActivity } from "https://esm.town/v/glommer/getThreadsActivity";
export default async function(interval: Interval) {
const guild = Deno.env.get("DISCORD_GUILD_ID");
const token = Deno.env.get("DISCORD_IKU_BOT_TOKEN");
const slackToken = Deno.env.get("SLACK_TOKEN");
const channel = Deno.env.get("SLACK_NOTIFY_CHANNEL_ID");
await getThreadsActivity(token, guild, slackToken, channel);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.