summaryrefslogtreecommitdiff
path: root/src/bot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.c')
-rw-r--r--src/bot.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bot.c b/src/bot.c
new file mode 100644
index 0000000..f18e8a1
--- /dev/null
+++ b/src/bot.c
@@ -0,0 +1,18 @@
+#include "b98.h"
+#include "config.h"
+#include "tls.h"
+
+int main()
+{
+ int err = bot_init();
+ if (err)
+ return err;
+
+ tls_init();
+ int socket_fd = tls_connect(HOST, PORT);
+
+ bot_loop(socket_fd);
+
+ tls_clean();
+ return 0;
+}