A Modularized C++ Library for the Discord API
Apr 13, 2019 A Discord Library written in C. Contribute to DiscordPP/discordpp development by creating an account on GitHub. A Discord Library written in C. Contribute to DiscordPP/discordpp.
This library is not a hacked Discord mobile app that will give you free Nitro. Free Nitro does not exist, and any YouTube video saying otherwise is attempting either to get you to install malware or to collect ad revenue off of you.
Links:
Requirements (I got these through APT)
- Boost
Required by what are currently the only modules: - TODO: Verify Crypto++
Discord C Deville
Install everything (Debian-based distros):
Install everything (Fedora/RHEL-based distros):
Included (Git submodules)
Building (Complicated) (Out of Date)You can also find detailed setup instructions in the Echo Bot repository
Discord C Dev 1
You can also find detailed setup instructions in the Echo Bot repository, currently on the refactor branch
Discord C Dev Server
- Download:
- Download or
git clone
Discord++, a Discord++ REST module, and a Discord++ Websocket module. - Place them all in a subdirectory of your project.
- Download or
- In CMake:
- Add
ADD_SUBDIRECTORY(<relative path>)
for Discord++ and each module.Oct 05, 2007 Generating public keys for authentication is the basic and most often used feature of ssh-keygen. Ssh-keygen can generate both RSA and DSA keys. RSA keys have a minimum key length of 768 bits and the default length is 2048. When generating new RSA keys you should use at least 2048 bits of key length unless you really have a good reason for using a shorter and less secure key. Generate rsa key with email. To generate an SSH key in Windows 10: Ensure the Windows 10 OpenSSH client is installed. Run “ssh-keygen” in Command Prompt and follow the instructions to generate your key. Paste the text below, substituting in your GitHub email address. $ ssh-keygen -t rsa -b 4096 -C '[email protected]' This creates a new ssh key, using the provided email as a label. Generating public/private rsa key pair. When you're prompted to 'Enter a file in which to save the key,' press Enter. This accepts the default file location. Step 2: Generate a new SSH key. With your command line tool still open, enter the text shown below. Make sure you substitute in your email address: $ ssh-keygen -t rsa -b 4096 -C 'mcflym@N123456' # Creates a new ssh key, using the provided domain username and computer name as a label Generating public/private rsa key pair. Online RSA Key Generator. Key Size 1024 bit. 512 bit; 1024 bit; 2048 bit; 4096 bit Generate New Keys Async. RSA Encryption Test. Text to encrypt: Encrypt / Decrypt. - Add
discordpp
and each module to yourINCLUDE_DIRECTORIES
command.
- In your code:
- Include
discordpp/bot.hh
and the header file from each submodule.Example: - Create a Bot object, and pass it your token, a REST module, and a Websocket module.
- Add responses to events with the Bot's
- Create an
boost::asio::io_service
- Initialize the bot object with its
init(std::shared_pointer<boost::asio::io_service> asio_ios)
. - Run the
boost::asio::io_service