To set up .env file, copy .env.example and fill out the blanks.
Discord developer portal: https://discord.com/developers/applications/
- clientID is the Application ID, found in General Information under your app in the developer portal
- publicKey is the Public Key, found in General Information under your app
- token is only shown once when you generate it, under the Bots tab of your app
- testServerID is the guild ID of your testing Discord server
- quarterly is for my credit card's quarterly cashback category
- make sure you're using node >= 23.6.0 (first version with native ts type stripping)
npm installto install packagesnode index.ts testornode index.ts prod
npm installto install packages- run
tsc --init(after installing typescript) to create atsconfig.jsonfile - run
tscto generate.jsversion of files - in each
.jsfile, remove.tsextension from import statements - in
package.json, removetype:module - run
node index.js testornode index.js prod