aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-03-30 15:09:52 -0400
committerCara Salter <cara@devcara.com>2023-03-30 15:09:52 -0400
commit8233fc4bcffc82907e82b31072cb8129aa200ae5 (patch)
treebb9551e287fb632cbb3dfb070ffa228351ed4129 /src/bot.cpp
parent527b7ab2df126bb2f480999049ed05b057a6ef83 (diff)
download142bot-8233fc4bcffc82907e82b31072cb8129aa200ae5.tar.gz
142bot-8233fc4bcffc82907e82b31072cb8129aa200ae5.zip
reactions module
Diffstat (limited to 'src/bot.cpp')
-rw-r--r--src/bot.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/bot.cpp b/src/bot.cpp
index 1c764b7..57bf091 100644
--- a/src/bot.cpp
+++ b/src/bot.cpp
@@ -1,4 +1,5 @@
+#include <dpp/snowflake.h>
#include <stdlib.h>
#include <142bot/bot.hpp>
#include <dpp/dpp.h>
@@ -22,6 +23,14 @@ bool Bot::isDevMode() {
return dev;
}
+void Bot::set_owner_id(dpp::snowflake id) {
+ this->owner_id = id;
+}
+
+dpp::snowflake Bot::get_owner_id() {
+ return this->owner_id;
+}
+
int64_t Bot::getID() {
return this->user.id;
}
@@ -127,9 +136,8 @@ void Bot::onGuildUpdate(const dpp::guild_update_t &obj)
}
-void Bot::onMessageReactionAdd(const dpp::message_reaction_add_t &obj)
-{
-
+void Bot::onMessageReactionAdd(const dpp::message_reaction_add_t &obj) {
+ FOREACH_MOD(I_OnMessageReactionAdd, OnMessageReactionAdd(obj));
}