aboutsummaryrefslogtreecommitdiff
path: root/conf.h
blob: 80d71819cc2b9c1e9fd3d44522fc45c76690d00a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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