diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-01 23:53:13 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-01 23:53:13 +0500 |
| commit | 7f9002377d207d7a175d595faf9f756629a8557c (patch) | |
| tree | 349b004592e8ad35ee2d51c487810576391cec79 /src/main.cpp | |
| parent | b424f1e2aee3516c482fc2f0968bde1af49a2f6f (diff) | |
feat: added bot_client_id field to Configuration
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f9be192..d617769 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,8 +23,10 @@ int main(int argc, char *argv[]) { bot::Configuration cfg = o_cfg.value(); - if (cfg.bot_password.empty() || cfg.bot_username.empty()) { - std::cerr << "*** BOT_USERNAME and BOT_PASSWORD must be set!\n"; + if (cfg.bot_password.empty() || cfg.bot_username.empty() || + cfg.bot_client_id.empty()) { + std::cerr + << "*** BOT_USERNAME, BOT_CLIENT_ID and BOT_PASSWORD must be set!\n"; return -1; } |
