Skip to content

radiohertz/libdiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libdiscord

A C Library for building discord bots.

Requirements

  • GCC
  • Make
  • OpenSSL
  • Pthreads
  • jansson

Installation libdiscord

  • Create your project folder and open a terminal in that folder.
  • git clone https://github.com/mall0cd/libdiscord.git ./
  • sudo make libs

The above steps will build all the files and compile them on your machine. Afterwards it will be ready for use, Some examples are present in examples/

How to use the library?

If you've installed libdiscord correctly you should be able to include the following headers in a .c or .h file.

#include <libdiscord/gateway.h>
#include <libdiscord/wsc.h>
#include <libdiscord/bot.h>
#include <libdiscord/rest.h>
#include <libdiscord/types.h>

These are the headers required to create a very basic bot

#include <libdiscord/gateway.h>
#include <libdiscord/wsc.h>
#include <libdiscord/bot.h>
#include <libdiscord/rest.h>
#include <libdiscord/types.h>
#include <string.h>
#include <sys/time.h>

Please read the source code and the examples for more information and usage. Currently the library is still in work so there is not much documentation created yet. Soon all the methods will be described in the repo's wiki page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published