aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-11-13 12:25:41 -0800
committerTrumeet <yuuta@yuuta.moe>2021-11-13 12:25:41 -0800
commit47032d1b4143bb9e9438dc4463fcc9d3be727926 (patch)
treee89719afc42bcd82e445a4406805fe915258c059 /main.c
downloadmutebot-47032d1b4143bb9e9438dc4463fcc9d3be727926.tar
mutebot-47032d1b4143bb9e9438dc4463fcc9d3be727926.tar.gz
mutebot-47032d1b4143bb9e9438dc4463fcc9d3be727926.tar.bz2
mutebot-47032d1b4143bb9e9438dc4463fcc9d3be727926.zip
First Commit
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..6fdba8b
--- /dev/null
+++ b/main.c
@@ -0,0 +1,20 @@
+#include "mutebot.h"
+#include "tdutils.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdbool.h>
+
+int post_auth() {
+
+}
+
+int main(int argc, char **argv) {
+ int r = 0;
+ if ((r = cmdline_init(argc, argv))) goto cleanup;
+ if ((r = td_init())) goto cleanup;
+ td_loop();
+ goto cleanup;
+ cleanup:
+ td_free();
+ return r;
+}