Skip to content

RealAlpha/discord-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-C

A c discord API....that needs some work. Please note that this is an old project, and should not be used for anything important. Future updates are not guaranteed, so use at your own risk!

Screenshot of example app

Build Discord-C

Build the library & example application

  1. Clone Discord-C
git clone https://github.com/RealAlpha/discord-c.git
cd discord-c
  1. Set your token by going to main.c and updating <YOUR TOKEN HERE> with your own token. (obtained from LocalStorage or a bot token; keep the Discord TOS in mind).

  2. Build Discord-C:

make
  1. Run the Discord-C example:
./test

Build the library

  1. Clone Discord-C
git clone https://github.com/RealAlpha/discord-c.git
cd discord-c/lib
  1. Build Discord-C:
make
  1. The discord-c static library is libdiscord-c.a. To compile your Discord-C programs please use the following gcc/clang flags to include Discord-C and its dependencies:
-I/path/to/discord-c/lib -L/path/to/discord-c/lib -lwebsockets -lssl -lcrypto -lpthread -lcjson -lcurl -ldiscord-c

Dependencies

Discord-C depends on the following libraries:

Furthermore, to use the built-in make files and examples, you'll need to use clang

Please check out disclird, the (WIP) Discord CLI written in c!

https://github.com/Audiatorix/Disclird

Written by Alpha-V. Please open an issue if you're experiencing any issues/have feature suggestions!

About

A C library for discord...that needs some work

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published