fixes
This commit is contained in:
parent
2a9297a3b2
commit
61e59be26e
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_AUTHOR_HPP_
|
||||
#define INTERFACE_AUTHOR_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network.hpp>
|
||||
class Author {
|
||||
private:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_BOT_HPP_
|
||||
#define INTERFACE_BOT_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
template<typename...Args>
|
||||
class Discord {
|
||||
private:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_CHANNEL_HPP_
|
||||
#define INTERFACE_CHANNEL_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network.hpp>
|
||||
class Channel {
|
||||
private:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_EMBED_HPP_
|
||||
#define INTERFACE_EMBED_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
class EmbedBuilder {
|
||||
private:
|
||||
nlohmann::json embed = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_GUILD_HPP_
|
||||
#define INTERFACE_GUILD_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network.hpp>
|
||||
class Guild {
|
||||
private:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_MESSAGE_HPP_
|
||||
#define INTERFACE_MESSAGE_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network.hpp>
|
||||
class Message {
|
||||
private:
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef INTERFACE_USER_HPP_
|
||||
#define INTERFACE_USER_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network.hpp>
|
||||
#include <vector>
|
||||
class User {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef TLS_NETWORK_HPP_
|
||||
#define TLS_NETWORK_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <network/websocket.hpp>
|
||||
#include <curl/curl.h>
|
||||
class NetworkManager {
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef NETWORK_WEBSOCKET_HPP_
|
||||
#define NETWORK_WEBSOCKET_HPP_
|
||||
#include <includes.hpp>
|
||||
#include <pch.hpp>
|
||||
#include <ranges>
|
||||
#include <ixwebsocket/IXNetSystem.h>
|
||||
#include <ixwebsocket/IXWebSocket.h>
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <api.hpp>
|
||||
#include <includes.hpp>
|
||||
#include <cxxopts.hpp>
|
||||
|
||||
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<Message, User, Author>& 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user