Skip to content

Files

Latest commit

 

History

History
41 lines (29 loc) · 773 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 773 Bytes

notion-to-discord

build

deno run -A --allow-write=./dist.json --check ./build.ts

run

startInLocal.ts

import { startServer } from "./main.tsx";

startServer({
  notionIntegrationSecret: "secret_xxx",
  discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
deno run --unstable --allow-net=:8000,api.notion.com,discord.com --watch --check ./startInLocal.ts

notificationToDiscord

notificationToDiscordInLocal.ts

import { notificationToDiscord } from "./main.tsx";

notificationToDiscord({
  notionIntegrationSecret: "secret_xxx",
  discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
deno run --allow-net=api.notion.com,discord.com --check ./notificationToDiscordInLocal.ts