This is the official tarkov-tools discord bot.
To add it to your server, just click the link below:
or here:
discordbotlist.com/bots/tarkov-tools
or here top.gg/bot/925298399371231242
This bot takes all the data from tarkov-tools.com and exposes it in a user-friendly way.
This bot is open source and supported by the team behind tarkov-tools.
Want to find out what barters are available for the wooden clock?
/barter clock
is your friend.
Want to randomize a map for your friends to play but only between customs and factory?
/map customs factory
and you're good to go.
/price
&& !price
/map
&& !map
/barter
&& !barter
/craft
&& !craft
/ammo
/status
/help
&& !help
/about
/issue
/status
with more being added almost every day.
For development you need to crate 2 files in your local directory. One is for registering commands and one is for running the bot.
The files are:
config-dev.json
.env
Before you can test the bot out locally, you will need to create a Discord bot to authenticate with.
Create your bot:
An example of the config-dev.json
file can be found at the root of this repo at config-dev.example.json
. You will need to edit and rename this file to config-dev.json
and add the appropriate values as seen below:
{
"clientId": "<add_value_here>",
"guildId": "<add_value_here>",
"token": "<add_value_here>"
}
The clientId
can be found in your Discord bot's general information under APPLICATION_ID
https://discord.com/developers/applications/
Copy the guildId
from the Discord server you want to add the bot to:
Note: In order to copy a guild id, you will need to have Discord developer mode enabled, scroll down in the guide to see how to do so (its easy!)
The token is the same as the DISCORD_API_TOKEN
which can be found in the .env
setup steps below.
Next, you will need to edit the .env
file and add the appropriate values as seen below:
DISCORD_API_TOKEN=<value_here>
ADMIN_ID=<value_here>
The DISCORD_API_TOKEN
can be found here:
ADMIN_ID
is your personal Discord user ID, which is used for admin commands and can be found here:
To add the DEV bot to your server, click this link where you've replaced the <MY_CLIENT_ID>
with your bots application id:
In order to copy certain values (such as channel/guild/user IDs) you need to enable developer mode in the Discord client
- In Discord, open your User Settings by clicking the Settings Cog next to your user name on the bottom.
- Go to Appearance and enable Developer Mode under the Advanced section, then close User Settings.
- Open your Discord server, right-click on the server name, then select Copy ID (to obtain the "guild ID" of your Discord server)
Before you start the bot you will need to register the Slash commands in your test server:
$ node deploy-commands-dev.mjs
Successfully registered application commands.
Next, there are two ways to start the bot:
- Locally (suggested)
- Docker
To start the bot locally, run the following commands:
$ export DISCORD_API_TOKEN=<token>
$ export NODE_ENV=development
$ node index.mjs
Filling autocomplete cache
fill-autocomplete-cache: 590.582ms
Logged in as tarkov-tools-dev#1234!
To start the bot with Docker, simply run the following command:
$ docker-compose up --build
Creating bot ... done
Attaching to bot
bot | Setting up rollbar
bot | Filling autocomplete cache
bot | fill-autocomplete-cache: 944.249ms
bot | Logged in as tarkov-tools-dev#1234!