Skip to content

DiscordBot for Dead By Daylight with player stats and some fun features

License

Notifications You must be signed in to change notification settings

Crltoz/EntityBot

Repository files navigation


EntityBot
EntityBot

Dead By Daylight stats, builds and more.

Node.js discord.js

OverviewRequerimentsInstallationEnvironment-VariablesTutorialsLicenseContributing

▶️ Overview

This bot was born with the idea of providing Dead By Daylight players with their statistics without the need to search for them on the web. Therefore, this Discord bot was created with simple commands to retrieve statistics by making API requests to the Dead By Daylight statistics website created by Tricky. After surpassing 100 servers, the bot was verified by the Discord team, granting the team a recognition badge on their Discord profiles and the verified icon to the bot.

Before starting the installation, please note that you should meet the requirements as it requires some basic knowledge of MongoDB.

🛠️ Features:

  • Random builds (survivor/killer)
  • Get player stats (only steam supported) in canvas image.
  • Save steam profile link get stats by menu (Right click on your profile -> Apps -> EntityBot -> Stats)
  • Set channel to use commands.
  • Calculate bloodpoints to get level in characters (need update)
  • Multi-language (Spanish/English)

📷 Media

All the images are generated with canvas through code using the statistics and build data. The images used are either free-to-use or created by someone on the team. Credits are given to certain background artists who created them.

Stats by user menu (Attach your steam profile url with /profile)

CR67TYP

Random command

image

Statistics (survivor and killer)

image image

🗒️Requeriments

  • NodeJS (v16 or higher) - Download
  • MongoDB (I recommend to install Mongo Compass also) - Download

🔧 Installation

Before this step, install all requeriments

  • Clone this repository.
  • Inside repository, use in command line npm install
  • Create file .env and set the [Environment Variables](#Environment Variables)
  • Use node index to start bot

⚠️ Environment-Variables

To make the project work, environment variables need to be set, which are necessary for the bot to function. Here, we'll provide a sample file for you to modify with the values you have. Never disclose these variables to anyone as they can gain access to your bot and perform improper actions. All this data is confidential, and only you and your closest team members should have access.

.env

CLIENT_ID = "yourApplicationID"
TOKEN = "yourApplicationToken"
GUILD_ID = "yourMainGuildID"
MONGO_URI = "yourMongoURI"
STATS_CHANNEL = "yourStatsChannelID"
SUPPORT_DISCORD = "yourSupportDiscordInviteLink"
STEAM_APIKEY = "yourSteamAPIKey"
USER_AGENT = "yourUserAgent"

CLIENT_ID

This is the ID of your application, which you can find within your bot's settings. Check tutorials to see how to copy discord IDS.

TOKEN

This is your bot's token. You can also find it in your application's dashboard. This is completely confidential, and no one should have access other than you.

GUILD_ID

This should be the ID of the Discord guild/server where your bot will send stats messages.

MONGO_URI

Here should go the URI of your MongoDB instance. If you are using your local machine, you can use mongodb:https://localhost:27017/entityBot. If you are using a cloud database, you should use the URI they provide with the authentication data.

STATS_CHANNEL

This should be the ID of the channel where a message will be sent each time the bot is added to a new server. Ideally, this channel should be in the guild you configured earlier.

SUPPORT_DISCORD

This should be an invitation link to a Discord server that will be sent to users when an unexpected error occurs, encouraging them to report it.

STEAM_APIKEY

This should be the API Key you generated with your account. Below, you can see where to generate it. This API Key is confidential and should not be placed in sensitive locations. Check tutorials to check how to get your steam web API Key.

USER_AGENT

This is the name with which your bot will identify itself with the statistics API. You can give it any name you like.


📺 Tutorials

📝 Credits

🧾 License

Released under the MIT license.