An express application so that when a vote has arrived, it is given advantages on the bot
Use PNPM or PNPM and install the pacakges pnpm install
or npm install
.
Set the required environment variables
DATABASE_URL="Your database URL if you want edit data when a user vote"
// If you use Railway, define this environment variable for set Node.JS 18
// NIXPACKS_NODE_VERSION=18
PORT=3000
TOPGG_TOKEN="https://top.gg/bot/:yourAppID/webhooks"
Use the command npx prisma db pull
to retrieve your database if you have already created tables
Or create your models and then do npx prisma db push
to send your changes to the database
Then do npx prisma generate
to generate your types.
Use pnpm
or npm
, run dev
or run start