Skip to content

Bloometti is a Discord bot made with Discord.JS to add a levels system.

Notifications You must be signed in to change notification settings

ariannelafraise/Bloometti

Repository files navigation

Bloometti logo A Discord bot made with Discord.js.

Levels system

Commands

/profile [user: @mention]

View your profile or the mentionned user's profile. profile embed

/ephemeral

Toggle ephemeral mode. This mode makes all your interactions with the bot hidden from other users.

/setcolor [hexcode*: #FFFFFF]

Set the color of your profile to a specific HEX code.

Formula

experienceToNextLevel = (currentLevel * nextLevel) * 50

Configuration

src/config/chatting.json

{
    "chattingExpMultiplier": 1.00,
    "chattingExpDelayInSeconds": 60,
    "chattingExpMinGain": 120,
    "chattingExpMaxGain": 300
}

Setting up

Create src/config/config.json

{
    "token": "YOUR_BOT_TOKEN",
    "clientId": "YOUR_BOT_CLIENT_ID",
    "guildId": "YOUR_BOT_GUILD_ID"
}

Deployment

Deployed with Docker Compose:

Check Dockerfile and docker-compose.yml.

Here are the containers:

  • The bot
  • A local MongoDB database on port 27017
  • mongo-express (web interface for MongoDB) on port 8081

Start

$ sudo docker compose up

Backing up data

$ docker exec -it mongo bash $ cd data/db

Export

$ mongoexport --db bloometti --port 27017 --collection users --out=users.json

Import

$ mongoimport --db bloometti --port 27017 --collection users --file users.json

*users.json will be located in data/mongo on the host system

Dependencies

About

Bloometti is a Discord bot made with Discord.JS to add a levels system.

Topics

Resources

Stars

Watchers

Forks