1
0
Fork 0
mirror of https://gitlab.com/niansa/asbots.git synced 2025-03-06 20:48:25 +01:00
asbots/main.cpp
2021-06-18 15:25:14 +02:00

23 lines
452 B
C++

#include "config.hpp"
#include "instance.hpp"
#include <uvpp.hpp>
#include <async/result.hpp>
#include <iostream>
#include <string>
#include <string_view>
using namespace std;
int main() {
using namespace uvpp;
async::run_queue rq;
async::queue_scope qs{&rq};
loop_service service;
Instance instance(service, config);
async::detach(instance.run());
async::run_forever(rq.run_token(), loop_service_wrapper{service});
}