<commit_before># Sleepy Discord
C++ library for Discord

# Why?
Just for the novelty of using a C++ library for Discord. I would also love for this thing to work on many things like consoles and maybe some microcontrollers.

# Example
```cpp
#include <sleepy_discord>

class myClientClass : public SleepyDiscord::DiscordClient {
public:
    using DiscordClient::DiscordClient;
    void onMessage(std::string * jsonMessage) {
   	    SleepyDiscord::Message message(jsonMessage);
	    if (message.content.find("whcg hello") == 0)
	        sendMessage(message.channel_id, "Hello " + message.author.username);
    }
};

int main() {
    myClientClass client("token");
    while(true)
        std::this_thread::sleep_for(std::chrono::seconds(1));
}
```
Input: Message received
```
whcg hello
```
Possible Output: Message sent
```
Hello <NAME>
```
# Will Updating the library break my bot?

Yes, and for now I don't plan on making 0.0 versions backwards compatable with 1.0 versions or later.

# Requirements
* [OpenSSL](https://www.openssl.org/)
* [Websocket++](https://github.com/zaphoyd/websocketpp)
* [cpr](https://github.com/whoshuu/cpr)<commit_msg>added info about the develop breach<commit_after># Sleepy Discord
C++ library for Discord

# Why?
Just for the novelty of using a C++ library for Discord. I would also love for this thing to work on many things like consoles and maybe some microcontrollers.

# Example
```cpp
#include <sleepy_discord>

class myClientClass : public SleepyDiscord::DiscordClient {
public:
    using DiscordClient::DiscordClient;
    void onMessage(std::string * jsonMessage) {
   	    SleepyDiscord::Message message(jsonMessage);
	    if (message.content.find("whcg hello") == 0)
	        sendMessage(message.channel_id, "Hello " + message.author.username);
    }
};

int main() {
    myClientClass client("token");
    while(true)
        std::this_thread::sleep_for(std::chrono::seconds(1));
}
```
Input: Message received
```
whcg hello
```
Possible Output: Message sent
```
Hello <NAME>
```
# Will Updating the library break my bot?

Yes, and for now I don't plan on making 0.0 versions backwards compatable with 1.0 versions or later.

# Requirements
* [OpenSSL](https://www.openssl.org/)
* [Websocket++](https://github.com/zaphoyd/websocketpp)
* [cpr](https://github.com/whoshuu/cpr)

# Develop Breach
For the cutting edge of Sleepy Discord, check out the develop breach. Please use the develop with caution because it may not even be able to complie or it is 100% not tested at all. Other then that, the breach is used for code that may not work.
{'fraction_non_alphanumeric': 0.11657629744384199, 'fraction_numerical': 0.005809450038729667, 'mean_word_length': 4.392484342379959, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451995', 'n_tokens_mistral': 826, 'n_tokens_neox': 778, 'n_words': 266}