Skip to main content

AskDB AI Bot

AskDB is a powerful AI base database query system that allows you to ask questions about your server and players. You can ask questions like "How many players joined my server in the last 24 hours?" or "What is the average player rating of my server?" and AskDB will answer them for you.

AskDB

How it works?

AskDB uses OpenAI GPT-3 to answer your questions. It uses the data from your server to answer your questions. Since it uses OpenAI APIs, you need to have an OpenAI account and API key to use AskDB.

OpenAI Pricing

OpenAI is a paid service and it charges you for every API request you make. You can check the pricing of OpenAI here.

Its always good to be careful and add usage limit in your OpenAI account setting.

Rough Cost Estimate: 1 query to AskDB will cost you around $0.0010 in OpenAI usage.

How to enable AskDB?

AskDB is disabled by default. To enable it, you need to follow these steps:

1. Create an OpenAI account

Go to OpenAI and create an account (Login if you already have one). Then go to Manage Account and then API Keys and create a new API key.

2. Enable AskDB

Open .env file of your MineTrax Installation and change these two variables:

ASKDB_ENABLED=true
OPENAI_API_KEY=sk-...

Make sure to replace sk-... with your OpenAI API key.

3. Done!

Now you can go to AskDB section of your web admin sidebar and start asking questions.

Permissions

Only staff with use ask_db permission can use AskDB. Please be careful while giving this permission to your staff as with this bot they can query anything from your minetrax database.

note

Passwords & Secret Keys, be it for the players or the servers, are stored in database in encrypted and hashed form. So you can't query them.