-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathybot.config.template
More file actions
223 lines (205 loc) · 7.69 KB
/
ybot.config.template
File metadata and controls
223 lines (205 loc) · 7.69 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
%% -*- mode: Erlang; -*-
%%%
%%% Main Ybot config
%%%
[
{ybot,
[
% list of transport
{transports, [
% Irc transport
%{irc,
% % Irc nick
% <<"ybott">>,
% % Irc channel list with keys
% [{<<"#erlplay">>, <<>>}, {<<"#help">>, <<>>}],
% % Irc server host / pass
% {<<"irc.freenode.net">>, <<>>},
% % 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 xmpp login
% <<"ybot@jabber.org">>,
% % bot xmpp password
% <<"ybot_password">>,
% % xmpp room
% <<"room@conference.jabber.com">>,
% % nick in this room
% <<"MyYbot">>,
% % xmpp server
% <<"jabber.org">>,
% % xmpp resource
% <<"home">>,
% % xmpp options
% [
% % XMPP port
% {port, 5222},
% % Use ssl or not
% {use_ssl, false},
% % reconnect timeout
% {reconnect_timeout, 5000}
% ]
%},
% Hipchat config
% {hipchat,
% % Bot Hipchat Username
% <<"00000_00000@chat.hipchat.com">>,
% % Bot Hipchat password
% <<"password">>,
% % Hipchat room
% <<"ybot_test@conf.hipchat.com">>,
% % Server
% <<"chat.hipchat.com">>,
% % Resource
% <<"bot">>,
% % Hipchat nick
% <<"ybot">>,
% % Options
% [
% {reconnect_timeout, 0}
% ]
% },
% Campfire transport
% {campfire,
% % campfire login
% <<"ybot">>,
% % campfire token
% <<"ybot_token">>,
% % campfire room id
% 100100,
% % campfire sub-domain
% <<"home100">>,
% % Options
% [{reconnect_timeout, 5000}]
% },
% flowdock config
% {flowdock,
% % Nick in chat
% <<"ybot">>,
% % Flowdock login
% <<"ybot@gmail.com">>,
% % 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
% <<"ybot">>,
% % room
% <<"ybot_test">>,
% % token
% <<"">>,
% % talkerapp options
% [{reconnect_timeout, 5000}]
%}
]
},
%
% Notifications
%
{notification, [
% % {plugin name :: atom(), [transport list :: atom()], timeout_in_seconds :: integer()}
% {ackbar, [irc, twitter], 60}
%
]},
%
% Ybot channels (write only transports)
%
{channel,
[
%
% twitter channel
%
% {twitter,
% % Consumer key
% <<"">>,
% % Consumer secret
% <<"">>,
% % Access token
% <<"">>,
% % Access token secret
% <<"">>
% },
%
% mail channel
%
% {smtp,
% % ybot mail
% <<"">>,
% % ybot mail password
% <<"">>,
% % send mail to
% [],
% % options
% [{use_ssl, true}, {host, <<"smtp.gmail.com">>}, {port, 465}]
% }
]
},
%
% Ybot web interface
%
{web_admin,
[
% use web admin or not
{use_web_admin, true},
% Web interface host
{webadmin_host, <<"localhost">>},
% Web interface port
{webadmin_port, 8000},
% Web interface authorization
{webadmin_auth, true},
{webadmin_auth_user, "foo"},
{webadmin_auth_passwd, "bar"}
]
},
% 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},
% Mnesia REST API host
{brain_api_host, <<"localhost">>},
% Mnesia REST API port
{brain_api_port, 8090}
]
}
].