nyanimedb/modules/bot/front/src/main.cpp

15 lines
317 B
C++

#include <front.hpp>
int main() {
AnimeBot bot(getenv("TOKEN"));
TgBot::TgLongPoll longPoll(bot.getBot());
while (true) {
try {
longPoll.start();
} catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
}
}
return 0;
}