Code is mostly taken from CloudSync Backend for the SongSpotlight Vendetta plugin
Requirements:
- Discord Bot
- NodeJS 18+
- Wrangler
- a brain
Steps:
-
Clone this repo
git clone https://github.com/nexpid/VendettaSongSpotlight cd VendettaSongSpotlight
-
Rename
.dev.vars.EXAMPLE
to.dev.vars
and replaceCLIENT_SECRET_HERE
with your Discord bot's secret- also run
echo YOUR_BOTS_CLIENT_SECRET | wrangler secret put client_secret
-
Run
wrangler d1 create VendettaSongSpotlight
then replace
DATABASE_ID_HERE
inwrangler.toml
with thedatabase_id
wrangler returned -
You're done! Now all you have to run is
# you can also use npm or yarn pnpm i pnpm run deploy