This repository has been archived on 2025-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
sparkle/libs/utils/types.hpp
2025-01-06 21:57:27 +05:00

16 lines
518 B
C++

#ifndef UTILS_TYPES_HPP_
#define UTILS_TYPES_HPP_
#define dapi string("/api/v10")
#define j(...) {{__VA_ARGS__}}
#define je(...) {__VA_ARGS__}
#define g(x, y) (std::get<x>(y))
#define ALL_INTENTS 131071
#include <utils/json.hpp>
using json = nlohmann::json;
#include <iostream>
void chngcol(const std::string& text, int rBg, int gBg, int bBg) {
std::cout << "\033[48;2;" << rBg << ";" << gBg << ";" << bBg << "m";
std::cout << "\033[38;2;255;255;255m";
std::cout << text << "\033[0m" << std::endl;
}
#endif