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!
- Clone Discord-C
git clone https://github.com/RealAlpha/discord-c.git
cd discord-c
-
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). -
Build Discord-C:
make
- Run the Discord-C example:
./test
- Clone Discord-C
git clone https://github.com/RealAlpha/discord-c.git
cd discord-c/lib
- Build Discord-C:
make
- 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
Discord-C depends on the following libraries:
Furthermore, to use the built-in make files and examples, you'll need to use clang
https://github.com/Audiatorix/Disclird
Written by Alpha-V. Please open an issue if you're experiencing any issues/have feature suggestions!