forked from OtpChatBot/Ybot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ybot.config
144 lines (130 loc) · 5.14 KB
/
ybot.config
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
%% -*- mode: Erlang; -*-
%%%
%%% Main Ybot config
%%%
[
{ybot,
[
% list of transport
{transports, [
% Irc transport
{irc,
% Irc nick
<<"ybott">>,
% Irc channel / key
{<<"#erlplay">>, <<>>},
% Irc server host / pass
{<<"irc.config.no">>, <<>>},
% Options
[
% Port number
{port,7000},
% Use ssl connection or not
{use_ssl, true},
% Reconnect timeout. Put 0 if you no need it.
{reconnect_timeout, 5000}
]
}
%% % Xmpp transport
%% {xmpp, % bot login
%% <<"[email protected]">>,
%% % bot password
%% <<"ybot_password">>,
%% % xmpp room
%% <<"[email protected]">>,
%% % xmpp server
%% <<"jabber.com">>,
%% % xmpp resource
%% <<"home">>,
%% % xmpp options
%% [{port, 5222}, {use_ssl, false},
%% {reconnect_timeout, 5000},
%% % HipChat options
%% % is this hipchat
%% {is_hipchat, true},
%% % Room nickname. Get it in account xmpp settings
%% {hipchat_nick, <<"ybot ybot">>}
%% ]
%% },
%% % Campfire transport
%% {campfire, % campfire login
%% <<"ybot">>,
%% % campfire token
%% <<"ybot_token">>,
%% % campfire room id
%% 100100,
%% % campfire sub-domain
%% <<"home100">>,
%% [{reconnect_timeout, 5000}]
%% },
%% % flowdock config
%% {flowdock,
%% % Nick in chat
%% <<"ybot">>,
%% % Flowdock login
%% <<"[email protected]">>,
%% % Flowdock password
%% <<"password">>,
%% % Flowdock organization
%% <<"ybot_org">>,
%% % Flow
%% <<"ybot_flow">>,
%% % Connection options
%% [{reconnect_timeout, 5000}]
%% },
%% % Http Ybot interface
%% {http,
%% % Http server host
%% <<"localhost">>,
%% % Http server port
%% 8080,
%% % Ybot nick
%% <<"Ybot">>
%% },
%% % skype
%% {skype,
%% % use skype or not
%% true,
%% % Ybot http interface host
%% <<"http://localhost">>,
%% % Ybot http interface port
%% 8080
%% },
% talkerapp
%%{talkerapp,
%% % talkerapp nick
%% <<"testtest.89">>,
%% % room
%% <<"ybot_test">>,
%% % token
%% <<"b5c1c5e7ffd7ddad3d45c5bd9ee8c55065e5bfdb">>,
%% % talkerapp options
%% [{reconnect_timeout, 5000}]
%%}
]
},
%
% Ybot web interface
%
% Web interface host
{webadmin_host, <<"localhost">>},
% Web interface port
{webadmin_port, 8000},
% Loading new plugins during work or not (not required parameter)
{checking_new_plugins, true},
% Checking new plugins timeout (not required parameter)
{checking_new_plugins_timeout, 60000},
% Save commands history (not required parameter)
{commands_history, false},
% Command history limit (not required parameter)
{history_command_limit_count, 1000},
% Plugins directory path
{plugins_path, "plugins/"},
% Default brain storage
{brain_storage, mnesia},
% Brain REST API configuration
{brain_api_host, <<"localhost">>},
{brain_api_port, 8090}
]
}
].