From 8233fc4bcffc82907e82b31072cb8129aa200ae5 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 30 Mar 2023 15:09:52 -0400 Subject: reactions module --- include/142bot/bot.hpp | 5 +++++ include/142bot/modules.hpp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/142bot/bot.hpp b/include/142bot/bot.hpp index c919179..49aa956 100644 --- a/include/142bot/bot.hpp +++ b/include/142bot/bot.hpp @@ -1,3 +1,4 @@ +#include #include #include @@ -8,6 +9,7 @@ class Module; class ModuleLoader; class Bot { bool dev; + dpp::snowflake owner_id; public: class dpp::cluster * core; @@ -16,6 +18,9 @@ public: Bot(bool development, dpp::cluster* cluster); //virtual ~Bot(); + + void set_owner_id(dpp::snowflake id); + dpp::snowflake get_owner_id(); ModuleLoader* loader; diff --git a/include/142bot/modules.hpp b/include/142bot/modules.hpp index d1bb3f6..ab888d3 100644 --- a/include/142bot/modules.hpp +++ b/include/142bot/modules.hpp @@ -134,7 +134,7 @@ public: bool unload(const std::string &fname); // Unloads and then reloads a module - void reload(const std::string &fname); + bool reload(const std::string &fname); // Get list of loaded modules const ModuleMap& get_loaded_modules() const; @@ -186,6 +186,7 @@ public: virtual bool OnVoiceStateUpdate(const dpp::voice_state_update_t &obj); virtual bool OnVoiceServerUpdate(const dpp::voice_server_update_t &obj); virtual bool OnWebhooksUpdate(const dpp::webhooks_update_t &obj); + void EmbedSimple(const std::string &message, int64_t channelID); }; /* A macro that lets us simply define the entrypoint of a module by name */ -- cgit v1.2.3