This repository is a basic template for creating a Discord bot with global economy functionalities. It includes commands to perform economic actions within your Discord server.
-
Clone the repository using the following command:
git clone https://github.com/onoxbr/DiscordJS-Economy-Template.git -
Install the necessary dependencies:
npm install -
Configure the
.envfile with the following variables:
# Bot token
TOKEN=
# MongoDB URI
MONGO_URI=
# Application ID
CLIENT_ID=
# Your ID
OWNER_ID=
- Start the bot using:
node index.js
- daily: Receive your daily reward.
- atm: View your wallet.
- pay: Pay a specified amount to another user.
- work: Work to earn money.
- rank: See the global coin ranking.
This template uses MongoDB as the database to store information about users and their economic transactions.