#include "cadence.h" #include int main(int argc, char** argv) { std::random_device randomDevice; std::mt19937 rng(randomDevice()); if (argc != 2) { std::cout << "usage: cadence [configfile]" << std::endl; return -1; } std::string configfile(argv[1]); try { cadence bot(configfile, rng); try { bot.run(); } catch (const std::exception& ex) { std::cout << "Error running bot: " << ex.what() << std::endl; } } catch (const std::exception& ex) { std::cout << "Error initializing bot: " << ex.what() << std::endl; } }