1
0
Fork 0
mirror of https://gitlab.com/niansa/asbots.git synced 2025-03-06 20:48:25 +01:00
asbots/serviceBase.hpp
2021-06-21 00:29:37 +02:00

26 lines
530 B
C++

#ifndef _SERVICEBASE_HPP
#define _SERVICEBASE_HPP
class Event;
class User;
class Instance;
#include "uid.hpp"
#include "incompletes.hpp"
#include <async/result.hpp>
class ServiceBase {
public:
UUID uuid;
Instance *i;
bool ready = false;
virtual async::result<void> intitialize() = 0;
virtual async::result<void> on_event(const Event& event) = 0;
virtual async::result<void> on_direct_privmsg(std::string_view msg, u_User& author) = 0;
async::result<void> mark_ready(const User& user);
};
#endif