aboutsummaryrefslogtreecommitdiff
path: root/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'conf.h')
-rw-r--r--conf.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/conf.h b/conf.h
new file mode 100644
index 0000000..80d7181
--- /dev/null
+++ b/conf.h
@@ -0,0 +1,40 @@
+#ifndef conf_h_INCLUDED
+#define conf_h_INCLUDED
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#ifdef LOCAL
+ #define HOST "0.0.0.0"
+ #define PORT "6971"
+ #define SOCKETNAME "bees.sock"
+ #define SOCKETGROUP "cdrom"
+#else
+ #define HOST "ubq323.website"
+ #define PORT "6667"
+ #define SOCKETNAME "/srv/apiobot/bees.sock"
+ #define SOCKETGROUP "apionet"
+#endif
+
+#ifdef DEBUG
+ #define DP(x) puts(x)
+ #define DPn(name,x,len) \
+ do { \
+ char *__xxx = strndup(x,len); \
+ printf(name " [%s]\n",__xxx); \
+ free(__xxx); \
+ } while (0)
+#else
+ #define DP(x)
+ #define DPn(n,x,l)
+#endif
+
+#define NICK "Bee"
+#define USERNAME "apiobot"
+#define REALNAME "apiobot"
+#define CHANNEL "#a"
+
+
+#endif // conf_h_INCLUDED
+