Customizable discord wallet bot built with TypeScript
- Typescript & Node.js Installed
- Discord Bot Token
- PayPal Business Account with Payouts enabled (optional)
Open config.json and fill out the values:
{
"database": "sqlite://database.db",
"serverId": "", #Server ID of the server you want the bot to work at
"token": "", #Bot Token
"paypalOptions": {
"mode": "", #Enter "live" or "sandbox" that corresponds to your PayPal API credentials
"client_id": "", #Client ID of your API credentials
"client_secret": "" #Client Secret of your API credentials
},
"roles": {
"payouts": "", #ID of roles that are allowed to run payouts command
"walletAdmin": "" #ID of the role that can manage a user's balance
}
}
You can leave the fields in paypalOptions
blank if you don't want to use the payouts
Download the files and run the following commands.
cd Discord-Wallet-Bot-main #You can rename the folder
npm install typescript@latest -g
npm install
npm run start
/wallet view
View the balance of a user's wallet
/wallet add
Add money to a user's wallet
/wallet remove
Remove money from a user's wallet
/wallet clear
Resets a user's wallet
/payouts create
Process a payout to a PayPal account.
This bot is created for the discord server owner to pay their staff/users and process PayPal payouts automatically.
Users with the Administrator role walletAdmin
can add money to a user's wallet using /wallet add. Then, the user can withdrawl the money to PayPal by running /payouts create . Then, when the money is successfully paid out, that amount of money will be deducted from the user's wallet.
Give a ⭐ if you like this project :)