/discord_bot

Primary LanguageTypeScript

Simple Economy Discord Bot

Economy Bot for check balance, give money and transfer. That's it so simple.

Commands

  • !balance, !bal => check balance.
  • !give => give money to specific user, ⛔ ADMIN ROLE CAN USE ⛔.
  • !transfer => transfer money to specific user.
  • !help => show all commands and a little description.
  • !clearchat => clear history message, ⛔ ADMIN ROLE CAN USE ⛔.

Clone

git clone https://github.com/tchala120/discord_bot.git && cd discord_bot

Install

yarn

yarn dev

How to use

Database

  • Create JSON file to root path with name is database/profiles.json

ENV

  • Look for .env.example in your project and rename to .env
  • Put your bot token to BOT_TOKEN variable.
  • Put your owner role id to OWNER variable for check commands that only accept owner role only.
# Bot Token
BOT_TOKEN=<put-your-bot-token>
# Roles
OWNER=<put-your-owner-role-id-here>