summaryrefslogtreecommitdiff
path: root/bot/src/utils/events.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-07-21 16:34:23 +0500
committerilotterytea <iltsu@alright.party>2025-07-21 16:34:23 +0500
commit8b86e9a8f071a1af5ce1531a9ebd2b2140e73ff7 (patch)
tree0e7bb1124987feed7318601693d84d8bec151f50 /bot/src/utils/events.hpp
parent123d99d5db3ab2f3d26e70b9f7e90292f8099825 (diff)
feat: a function for getting events
Diffstat (limited to 'bot/src/utils/events.hpp')
-rw-r--r--bot/src/utils/events.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/bot/src/utils/events.hpp b/bot/src/utils/events.hpp
new file mode 100644
index 0000000..e806c94
--- /dev/null
+++ b/bot/src/utils/events.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "api/twitch/helix_client.hpp"
+#include "database.hpp"
+#include "schemas/event.hpp"
+
+namespace bot::utils {
+ std::vector<schemas::Event> get_events(std::unique_ptr<db::BaseDatabase> conn,
+ api::twitch::HelixClient &api_client,
+ int moderator_id, int type,
+ const std::string &name);
+}; \ No newline at end of file