Listening to events from Stripe and post them on Discord.
First, make sure you have Deno installed.
Then run
$> cp .env.example .env // then edit this file
$> deno run --env-file=.env main.ts
or to avoid the interactive permissions granting:
deno run \
--allow-read=node_modules \
--allow-net=0.0.0.0,discord.com,discord.gg,gateway.discord.gg,gateway-us-east1-b.discord.gg,api.stripe.com \
--allow-env \
--no-prompt \
--env-file=.env \
src/server.ts
or like a cowboy:
deno run -A --env-file=.env src/server.ts