forked from pcchou/teleirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teleirc_config.js.example
50 lines (42 loc) · 1.24 KB
/
teleirc_config.js.example
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
var config = {};
/////////////////
// TG config //
/////////////////
config.tg_bot_token = 'YOUR_BOT_TOKEN_HERE';
config.tg_chat = 'YOUR_TELEGRAM_GROUP_CHAT_NAME';
//////////////////
// IRC config //
//////////////////
config.irc_nick = 'MyBot';
config.irc_server = 'irc.cs.hut.fi';
config.irc_channel = '#mychannel';
config.irc_channel_pwd = 'mypassword'; // leave empty for no password
// see https://node-irc.readthedocs.org/en/latest/API.html#client for documentation
config.irc_options = {
userName: 'bot',
realName: 'Telegram IRC Bot',
port: 6667,
localAddress: null,
debug: true,
showErrors: false,
autoRejoin: false,
autoConnect: true,
channels: config.irc_channel_pwd ?
[config.irc_channel + ' ' + config.irc_channel_pwd] :
[config.irc_channel],
secure: false,
selfSigned: false,
certExpired: false,
floodProtection: false,
floodProtectionDelay: 1000,
sasl: false,
stripColors: false,
channelPrefixes: "&#!",
messageSplit: 512,
encoding: ''
};
// relay all messages or only hilights
config.irc_relay_all = false;
// regex for detecting a hilight
config.irc_hilight_re = new RegExp('^' + config.irc_nick + '[:,]? +(.*)$', 'i');
module.exports = config;