make configuration more understandable

This commit is contained in:
Syping 2024-03-25 11:15:08 +01:00
parent 4e71f417d0
commit 420f536c9b
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
{
"token": "add bot token from here -> https://discord.com/developers/applications",
/*
A DISCORD BOT TOKEN IS NECESSARY TO USE THIS APPLICATION!
You can get a Bot Token from the Discord Developer Portal
by creating a New Application:
https://discord.com/developers/applications
*/
"token": "",
"translator": {
"type": "stub"
}

View File

@ -507,7 +507,7 @@ bool settings::parse(const std::string &data, bool initialize)
try {
dpp::json json;
try {
json = dpp::json::parse(data);
json = dpp::json::parse(data, nullptr, true, true);
}
catch (const std::exception &exception) {
std::cerr << "[Exception] " << exception.what() << std::endl;