Overview • Requeriments • Installation • Environment-Variables • Tutorials • License • Contributing
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)
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.
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
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"
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.
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.
This should be the ID of the Discord guild/server where your bot will send stats messages.
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.
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.
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.
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.
This is the name with which your bot will identify itself with the statistics API. You can give it any name you like.
- @Crltoz Developer & Deployment
- @Creepzster Testing & Datadumps
- @Rospper UX / Designer
- @Zander159 Testing & Community Manager
Released under the MIT license.