https://github.com/narumincho/notion-to-discord
https://github.com/narumincho/notion-to-discord
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/narumincho/notion-to-discord
- Owner: narumincho
- Created: 2023-12-23T03:43:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T03:05:47.000Z (over 2 years ago)
- Last Synced: 2025-04-06T10:44:53.014Z (about 1 year ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# notion-to-discord
## build
```sh
deno run -A --allow-write=./dist.json --check ./build.ts
```
## run
`startInLocal.ts`
```ts
import { startServer } from "./main.tsx";
startServer({
notionIntegrationSecret: "secret_xxx",
discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
```
```sh
deno run --unstable --allow-net=:8000,api.notion.com,discord.com --watch --check ./startInLocal.ts
```
## notificationToDiscord
`notificationToDiscordInLocal.ts`
```ts
import { notificationToDiscord } from "./main.tsx";
notificationToDiscord({
notionIntegrationSecret: "secret_xxx",
discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
```
```sh
deno run --allow-net=api.notion.com,discord.com --check ./notificationToDiscordInLocal.ts
```