From 61e59be26e36c56650edc83061ce796b30e631a4 Mon Sep 17 00:00:00 2001 From: fluttershy Date: Sun, 2 Feb 2025 00:11:39 +0500 Subject: [PATCH] fixes --- libs/interface/Author.hpp | 2 +- libs/interface/Bot.hpp | 2 +- libs/interface/Channel.hpp | 2 +- libs/interface/Embed.hpp | 2 +- libs/interface/Guild.hpp | 2 +- libs/interface/Message.hpp | 2 +- libs/interface/User.hpp | 2 +- libs/network/network.hpp | 2 +- libs/network/websocket.hpp | 2 +- sources/main.cpp | 3 ++- 10 files changed, 11 insertions(+), 10 deletions(-) diff --git a/libs/interface/Author.hpp b/libs/interface/Author.hpp index b23ac48..4ee1515 100644 --- a/libs/interface/Author.hpp +++ b/libs/interface/Author.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_AUTHOR_HPP_ #define INTERFACE_AUTHOR_HPP_ -#include +#include #include class Author { private: diff --git a/libs/interface/Bot.hpp b/libs/interface/Bot.hpp index c96b369..5355453 100644 --- a/libs/interface/Bot.hpp +++ b/libs/interface/Bot.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_BOT_HPP_ #define INTERFACE_BOT_HPP_ -#include +#include template class Discord { private: diff --git a/libs/interface/Channel.hpp b/libs/interface/Channel.hpp index 6b6635f..4c31f6d 100644 --- a/libs/interface/Channel.hpp +++ b/libs/interface/Channel.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_CHANNEL_HPP_ #define INTERFACE_CHANNEL_HPP_ -#include +#include #include class Channel { private: diff --git a/libs/interface/Embed.hpp b/libs/interface/Embed.hpp index 9f8fa57..0afc85e 100644 --- a/libs/interface/Embed.hpp +++ b/libs/interface/Embed.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_EMBED_HPP_ #define INTERFACE_EMBED_HPP_ -#include +#include class EmbedBuilder { private: nlohmann::json embed = { diff --git a/libs/interface/Guild.hpp b/libs/interface/Guild.hpp index 7b7b249..9b549ca 100644 --- a/libs/interface/Guild.hpp +++ b/libs/interface/Guild.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_GUILD_HPP_ #define INTERFACE_GUILD_HPP_ -#include +#include #include class Guild { private: diff --git a/libs/interface/Message.hpp b/libs/interface/Message.hpp index c313edc..01ec12b 100644 --- a/libs/interface/Message.hpp +++ b/libs/interface/Message.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_MESSAGE_HPP_ #define INTERFACE_MESSAGE_HPP_ -#include +#include #include class Message { private: diff --git a/libs/interface/User.hpp b/libs/interface/User.hpp index 98f1b7e..d0eb8bc 100644 --- a/libs/interface/User.hpp +++ b/libs/interface/User.hpp @@ -1,6 +1,6 @@ #ifndef INTERFACE_USER_HPP_ #define INTERFACE_USER_HPP_ -#include +#include #include #include class User { diff --git a/libs/network/network.hpp b/libs/network/network.hpp index 739d373..8dff095 100644 --- a/libs/network/network.hpp +++ b/libs/network/network.hpp @@ -1,6 +1,6 @@ #ifndef TLS_NETWORK_HPP_ #define TLS_NETWORK_HPP_ -#include +#include #include #include class NetworkManager { diff --git a/libs/network/websocket.hpp b/libs/network/websocket.hpp index 3badc16..9e44e83 100644 --- a/libs/network/websocket.hpp +++ b/libs/network/websocket.hpp @@ -1,6 +1,6 @@ #ifndef NETWORK_WEBSOCKET_HPP_ #define NETWORK_WEBSOCKET_HPP_ -#include +#include #include #include #include diff --git a/sources/main.cpp b/sources/main.cpp index 3fca8e3..e10b7bc 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -1,6 +1,7 @@ #include #include #include + int main(int argc, char* argv[]) { cxxopts::Options options("sparkle", "WIP discord bot library in C++"); options.add_options() @@ -37,7 +38,7 @@ int main(int argc, char* argv[]) { bot->on(GatewayEvents::MESSAGE_CREATE, [bot](const Discord& msg) { auto& [message, user, author] = msg.ctx(); if (!author->isBot) { - message->send("939957962972229634", message->pack("content", std::to_string(user->isBot))); + message->send("1334963948767940648", message->pack("content", std::to_string(user->isBot))); bot->getEvents(); bot->sendPresenceUpdate(StatusType::DND, "meow", ActivityType::Listening); }