# Spike # Installation 1. Clone this repository, d'uh. 1. You need to have [bun](https://bun.sh) installed. 1. Install deps with `bun install`. 1. Setup a dummy Discord bot and get your DISCORD*TOKEN and CLIENT_ID at https://discord.com/developers/applications *(Corey doesn't remember how to do this all this, so if pair with him if you run into problems. Then document it in here). 1. `cp .env.example .env` and fill in the values for everything. 1. Find a Discord channel id to use for testing and set it in `.env` as `DISCORD_CLIENT_ID`. 1. Run `bun run subdomain:dev` to start the server. 1. Visit `localhost:3000/discord/auth` to authorize the bot. 1. Use ngrok or tailscale to create a tunnel to your local server. 1. Setup a Gitea webhook to point to your ngrok url at `https://git.nose.space/user/settings/hooks`. **remember the url ends with /gitea/webhook!**