mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-11-24 23:00:22 +01:00
make configuration more understandable
This commit is contained in:
parent
4e71f417d0
commit
420f536c9b
2 changed files with 9 additions and 2 deletions
|
@ -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": {
|
"translator": {
|
||||||
"type": "stub"
|
"type": "stub"
|
||||||
}
|
}
|
||||||
|
|
|
@ -507,7 +507,7 @@ bool settings::parse(const std::string &data, bool initialize)
|
||||||
try {
|
try {
|
||||||
dpp::json json;
|
dpp::json json;
|
||||||
try {
|
try {
|
||||||
json = dpp::json::parse(data);
|
json = dpp::json::parse(data, nullptr, true, true);
|
||||||
}
|
}
|
||||||
catch (const std::exception &exception) {
|
catch (const std::exception &exception) {
|
||||||
std::cerr << "[Exception] " << exception.what() << std::endl;
|
std::cerr << "[Exception] " << exception.what() << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue