Yeah, here we go again!
Another Discord bot, so some info about the content.
You want to invite the bot? Unfortunately, it’s rarely online. If you are interested, send me a DM, and I’ll host it somewhere for you. But for now, it’s going to be offline 80% of the time.
The bot needs a config file with some info, like the Discord token. The template can be found here. During the rest of our set-up, we will populate this with some values.
At the moment of writing, you can already get a Discord token from the developer portal. Create an application, go to the bot settings, insert the token found there.
Prometheus is software for statistics, this (at the moment of writing) is required for the bot.
See the installation guide by Prometheus.
After you did that, replace the prometheus config with this config.
Replace PROMETHEUS-SERVER-BOT-PORT
with the port the bots prometheus server runs on. This also has to be set in the bots config, named prometheus_bot_port
.
Grafana is software for displaying the statistics, with a lot better UX/UI than Prometheus. Grafana can be installed from their site, when using the default port, it’s already set in the config. Now you still need a key for the API, this way our bot can generate the dashboard/datasource.
Go to configuration → API Keys.
From this screen, go to "Add API KEY".
Here, set the name to whatever you want. After this, set the role to Admin, and the time to live to however long you want to (recommend above 1 month).
On start-up, the bot will now take care of everything for you!
Install MariaDB using https://mariadb.org/download/?t=mariadb&p=mariadb&r=10.6.7, please use version 10.6.7
During installation, you need to set a username and password and port, these have to be set in the bots config.
Now everytime your bot starts up, your DB will get updates (new tables, or old tables will get edited).