Backend for the CloudSync Vendetta plugin
Requirements:
- Discord Bot
- NodeJS 18+
- Wrangler
- a brain
Steps:
-
Clone this repo
git clone https://github.com/nexpid/VendettaCloudSync cd VendettaCloudSync
-
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 VendettaCloudSync --experimental-backend=true
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 of course pnpm i pnpm run deploy