Skip to content

Commit

Permalink
fixup! tg_cpphost: flash cmd: Add randomly delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Nov 18, 2023
1 parent d5d6221 commit c1ea01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int main(void) {
}
ss << "Flashing '" << msg << "'..." << std::endl;
sentmsg = bot_sendReplyMessage(bot, message, ss.str());
std::this_thread::sleep_for(operator""s(genRandomNumber(5)));
std::this_thread::sleep_for(std::chrono::seconds(genRandomNumber(5)));
if (const size_t pos = genRandomNumber(reasons.size()); pos != reasons.size()) {
ss << "Failed successfully!" << std::endl;
ss << "Reason: " << reasons[pos];
Expand Down

0 comments on commit c1ea01f

Please sign in to comment.