cord:用C语言编写的Discord库

时间:2021-04-06 00:50:34
【文件属性】:
文件名称:cord:用C语言编写的Discord库
文件大小:45KB
文件格式:ZIP
更新时间:2021-04-06 00:50:34
C 绳索 Cord是一个使用HTTP和Websockets与接口的库。 该项目的目标是提供一个易于使用的库,用于开发不协调的应用程序(例如,使用C的机器人)。该库依赖于进行JSON序列化/反序列化, ,用于websocket通信和来执行HTTP请求。 注意:该库仍处于早期开发阶段,缺少许多功能 例子 以下示例bot使用cord来创建一个简单的echo bot #include #include #include void on_message(discord_t *client, cord_message_t *msg) { if (strcmp(msg->content, "ping") == 0) { // Allocate a response cord_message_t *response = malloc
【文件预览】:
cord-main
----tests()
--------array_tests.c(439B)
--------json_tests.c(439B)
--------container_tests.c(439B)
--------minunit.h(11KB)
--------CMakeLists.txt(116B)
----src()
--------array.h(443B)
--------sds.h(9KB)
--------memory.h(655B)
--------sds.c(40KB)
--------sdsalloc.h(2KB)
--------events.c(2KB)
--------util.h(173B)
--------events.h(605B)
--------array.c(1KB)
--------types.c(31KB)
--------error.c(633B)
--------types.h(10KB)
--------constants.h(132B)
--------discord.c(13KB)
--------util.c(210B)
--------cord.c(489B)
--------error.h(388B)
--------memory.c(938B)
--------cord.h(404B)
--------CMakeLists.txt(573B)
--------log.h(677B)
--------http.h(672B)
--------http.c(2KB)
--------discord.h(2KB)
----examples()
--------ping_pong.c(721B)
--------simple.c(5KB)
--------CMakeLists.txt(464B)
----LICENSE.md(1KB)
----.gitignore(14B)
----CMakeLists.txt(202B)
----README.md(2KB)

网友评论