mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-12-22 03:45:35 +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": {
|
||||
"type": "stub"
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue