diff --git a/irc/piraatit/telepirateirc/Helsinki.chatid b/irc/piraatit/telepirateirc/Helsinki.chatid new file mode 100644 index 0000000..c799b50 --- /dev/null +++ b/irc/piraatit/telepirateirc/Helsinki.chatid @@ -0,0 +1 @@ +-1001116081415 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Mediaseuranta.chatid b/irc/piraatit/telepirateirc/Mediaseuranta.chatid new file mode 100644 index 0000000..6512880 --- /dev/null +++ b/irc/piraatit/telepirateirc/Mediaseuranta.chatid @@ -0,0 +1 @@ +-1001106763853 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Mikaela - supergroup.chatid b/irc/piraatit/telepirateirc/Mikaela - supergroup.chatid new file mode 100644 index 0000000..c4434ab --- /dev/null +++ b/irc/piraatit/telepirateirc/Mikaela - supergroup.chatid @@ -0,0 +1 @@ +-1001149130394 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Aaltopiraatit.chatid b/irc/piraatit/telepirateirc/PIR - Aaltopiraatit.chatid new file mode 100644 index 0000000..b9a661f --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Aaltopiraatit.chatid @@ -0,0 +1 @@ +-1001090737719 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Grafiikka.chatid b/irc/piraatit/telepirateirc/PIR - Grafiikka.chatid new file mode 100644 index 0000000..3874099 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Grafiikka.chatid @@ -0,0 +1 @@ +-1001133635073 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Helsingin Hallituskokoukset.chatid b/irc/piraatit/telepirateirc/PIR - Helsingin Hallituskokoukset.chatid new file mode 100644 index 0000000..8e8390e --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Helsingin Hallituskokoukset.chatid @@ -0,0 +1 @@ +-1001122135183 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Helsinki.chatid b/irc/piraatit/telepirateirc/PIR - Helsinki.chatid new file mode 100644 index 0000000..c799b50 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Helsinki.chatid @@ -0,0 +1 @@ +-1001116081415 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Keski-Suomi.chatid b/irc/piraatit/telepirateirc/PIR - Keski-Suomi.chatid new file mode 100644 index 0000000..f459be4 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Keski-Suomi.chatid @@ -0,0 +1 @@ +-1001121256763 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Mediaseuranta.chatid b/irc/piraatit/telepirateirc/PIR - Mediaseuranta.chatid new file mode 100644 index 0000000..6512880 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Mediaseuranta.chatid @@ -0,0 +1 @@ +-1001106763853 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Messi.chatid b/irc/piraatit/telepirateirc/PIR - Messi.chatid new file mode 100644 index 0000000..9581c7c --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Messi.chatid @@ -0,0 +1 @@ +-1001137586553 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Toiminta.chatid b/irc/piraatit/telepirateirc/PIR - Toiminta.chatid new file mode 100644 index 0000000..a9e99a2 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Toiminta.chatid @@ -0,0 +1 @@ +-1001103875498 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Uusimaa.chatid b/irc/piraatit/telepirateirc/PIR - Uusimaa.chatid new file mode 100644 index 0000000..3756777 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Uusimaa.chatid @@ -0,0 +1 @@ +-1001096588605 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Varsinais-Suomi.chatid b/irc/piraatit/telepirateirc/PIR - Varsinais-Suomi.chatid new file mode 100644 index 0000000..d09a18b --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Varsinais-Suomi.chatid @@ -0,0 +1 @@ +-1001139315365 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Verkkopalvelut.chatid b/irc/piraatit/telepirateirc/PIR - Verkkopalvelut.chatid new file mode 100644 index 0000000..3e64c9f --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Verkkopalvelut.chatid @@ -0,0 +1 @@ +-1001115432082 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PIR - Yleiskeskustelu (EI EDUSTA PUOLUEEN LINJAA!).chatid b/irc/piraatit/telepirateirc/PIR - Yleiskeskustelu (EI EDUSTA PUOLUEEN LINJAA!).chatid new file mode 100644 index 0000000..c881353 --- /dev/null +++ b/irc/piraatit/telepirateirc/PIR - Yleiskeskustelu (EI EDUSTA PUOLUEEN LINJAA!).chatid @@ -0,0 +1 @@ +-1001128288801 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/PiNu hallitus.chatid b/irc/piraatit/telepirateirc/PiNu hallitus.chatid new file mode 100644 index 0000000..0b9e21f --- /dev/null +++ b/irc/piraatit/telepirateirc/PiNu hallitus.chatid @@ -0,0 +1 @@ +-1001142160911 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Piraatit.chatid b/irc/piraatit/telepirateirc/Piraatit.chatid new file mode 100644 index 0000000..05bf5b8 --- /dev/null +++ b/irc/piraatit/telepirateirc/Piraatit.chatid @@ -0,0 +1 @@ +-1001102075786 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Piraattinuoret.chatid b/irc/piraatit/telepirateirc/Piraattinuoret.chatid new file mode 100644 index 0000000..4dd4203 --- /dev/null +++ b/irc/piraatit/telepirateirc/Piraattinuoret.chatid @@ -0,0 +1 @@ +-1001117962134 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Pirate Party Finland.chatid b/irc/piraatit/telepirateirc/Pirate Party Finland.chatid new file mode 100644 index 0000000..f21fd97 --- /dev/null +++ b/irc/piraatit/telepirateirc/Pirate Party Finland.chatid @@ -0,0 +1 @@ +-1001136883228 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Sateenkaaripiraatit.chatid b/irc/piraatit/telepirateirc/Sateenkaaripiraatit.chatid new file mode 100644 index 0000000..8dbb47f --- /dev/null +++ b/irc/piraatit/telepirateirc/Sateenkaaripiraatit.chatid @@ -0,0 +1 @@ +-1001125413651 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Syötteet.chatid b/irc/piraatit/telepirateirc/Syötteet.chatid new file mode 100644 index 0000000..ecc92a8 --- /dev/null +++ b/irc/piraatit/telepirateirc/Syötteet.chatid @@ -0,0 +1 @@ +-1001116457229 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/TEST.chatid b/irc/piraatit/telepirateirc/TEST.chatid new file mode 100644 index 0000000..bcffc42 --- /dev/null +++ b/irc/piraatit/telepirateirc/TEST.chatid @@ -0,0 +1 @@ +-1001228320159 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Toiminta.chatid b/irc/piraatit/telepirateirc/Toiminta.chatid new file mode 100644 index 0000000..a9e99a2 --- /dev/null +++ b/irc/piraatit/telepirateirc/Toiminta.chatid @@ -0,0 +1 @@ +-1001103875498 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/Uusimaa.chatid b/irc/piraatit/telepirateirc/Uusimaa.chatid new file mode 100644 index 0000000..3756777 --- /dev/null +++ b/irc/piraatit/telepirateirc/Uusimaa.chatid @@ -0,0 +1 @@ +-1001096588605 \ No newline at end of file diff --git a/irc/piraatit/telepirateirc/config.js b/irc/piraatit/telepirateirc/config.js new file mode 100644 index 0000000..db4e9bf --- /dev/null +++ b/irc/piraatit/telepirateirc/config.js @@ -0,0 +1,239 @@ +var config = {}; +module.exports = config; + +///////////////////// +// General config // +///////////////////// + +// paste the bot API token you got from BotFather here: +config.tgToken = 'CENSORED'; + +// only relay IRC events present in array +// possible values include: +// message, notice, action, topic, join, part, kick, quit +config.relayIRCEvents = ['message', 'notice', 'action', 'kick', 'topic']; + +// enable HTTP server which hosts sent media files, links to files are +// forwarded to IRC +config.showMedia = true; + +// HTTP server port +config.httpPort = 61825; + +// HTTP server location, URLs are generated from this +config.httpLocation = 'http://hilla.kapsi.fi' + ':' + config.httpPort; +//config.httpLocation = 'https://t4.mikaela.info'; + +////////////////// +// IRC config // +////////////////// + +// formatting of Telegram usernames on IRC. +// the following placeholders are available: +// +// - %firstName% (first name of sender) +// - %lastName% (last name of sender) +// - %username% (optional Telegram username of sender) +config.nameFormat = '%username%'; + +// fallback format string for %username% if sender lacks username +config.usernameFallbackFormat = '%firstName% %lastName%'; + +config.ircNick = 'T4'; +config.ircServer = 'au.pirateirc.net'; + +// array of commands to send to IRC server as soon as we're connected, +// example: config.ircPerformCmds = [ +// 'PRIVMSG Q@CServe.quakenet.org :AUTH ' +// ] + +// config.ircPerformCmds = ['NICKSERV identify Euforia CENSORED'] +config.ircPerformCmds = ['NICKSERV identify T4 CENSORED', 'NICKSERV regain T4', 'mode T4 -i+gRQ', 'CHANSERV invite #messi', 'JOIN #messi']; +//config.ircPerformCmds = []; + +config.channels = [ + + { + ircChan: '#piraattinuoret', + tgGroup: 'Piraattinuoret' + }, + + { + ircChan: '#piraatit', + tgGroup: 'Piraatit' + }, + + { + ircChan: '#mediaseuranta', + tgGroup: 'PIR - Mediaseuranta' + }, + + { + ircChan: '#helsinki', + tgGroup: 'PIR - Helsinki' + }, + + { + ircChan: '#uusimaa', + tgGroup: 'PIR - Uusimaa' + }, + + { + ircChan: '#toiminta', + tgGroup: 'PIR - Toiminta' + }, + + { + ircChan: '#verkkopalvelut', + tgGroup: 'PIR - Verkkopalvelut' + }, + + { + ircChan: '#pinu_hallitus', + tgGroup: 'PiNu hallitus' + }, + + { + ircChan: '#piraattipuolue', + tgGroup: 'PIR - Yleiskeskustelu (EI EDUSTA PUOLUEEN LINJAA!)' + }, + + { + ircChan: '#keski-suomi', + tgGroup: 'PIR - Keski-Suomi' + }, + + { + ircChan: '#sateenkaaripiraatit', + tgGroup: 'Sateenkaaripiraatit' + }, + + { + ircChan: '#test', + tgGroup: 'TEST' + }, + + { + ircChan: '#Mikaela', + ircChanReadOnly: true, + ircChanOverrideReadOnly: true, + tgGroup: 'Mikaela - supergroup', + tgGroupReadOnly: true, + tgGroupOverrideReadOnly: true, + }, + + { + ircChan: '#aaltopiraatit', + tgGroup: 'PIR - Aaltopiraatit' + }, + + { + ircChan: '#ppfi', + tgGroup: 'Pirate Party Finland' + }, + + { + ircChan: '#grafiikka', + tgGroup: 'PIR - Grafiikka' + }, + + { + ircChan: '#messi', + tgGroup: 'PIR - Messi' + }, + + { + ircChan: '#varsinais-suomi', + tgGroup: 'PIR - Varsinais-Suomi' + }, + + { + ircChan: '#hepihalko', + tgGroup: 'PIR - Helsingin Hallituskokoukset' + }, + + { + ircChan: '#syotteet', + tgGroup: 'Syötteet' + } + + //{ + // ircChan: '#teleirc', + // tgGroup: 'teleirc' + //} + + // example of a password-protected IRC channel: + //{ + //ircChan: '#channel2', + //chanPwd: 'passwd', + //tgGroup: 'Tg_Group_2' + //}, + + // example of an IRC channel with an alias: + // channel name will be displayed as '!channel3' instead of '!XXXXXchannel3' + //{ + //ircChan: '!XXXXXchannel3', + //chanAlias: '!channel3', + //tgGroup: 'Tg_Group_3' + //} +]; + +// see https://node-irc.readthedocs.org/en/latest/API.html#client for +// documentation +config.ircOptions = { + userName: 'Euforia', + realName: 'Admin: Mikaela @M1kaela', + port: 6697, + localAddress: null, + debug: false, + showErrors: true, + autoRejoin: true, + autoConnect: true, + channels: [], // auto generated, do not touch + secure: true, + // TRUE JOS EPÄKELPO! + selfSigned: false, + certExpired: false, + floodProtection: true, + floodProtectionDelay: 1000, + sasl: true, + //sasl: false, + stripColors: true, + channelPrefixes: '&#!', + messageSplit: 512, + encoding: '', + //password: '' + password: 'CENSORED' +}; + +// if you wish to relay every irc message to telegram, set this to true. +// if false, then only lines matching config.hlRegexp will be relayed +config.ircRelayAll = true; + +// the default hilight regexp will match lines containing the bot nick, or +// lines starting with '! ' +var regex = '^ *(?:' + config.ircNick + '[:,]?|!) +(.*\\S.*)$'; +config.hlRegexp = new RegExp(regex, 'i'); + +// automatically added by config upgrade: +config.logLevel = "info"; +config.mediaRandomLength = 0; +config.maxMsgAge = 60; +config.allowCommands = true; +config.nickcolor = false; +config.palette = ["white","silver","navy","green","red","brown","purple","olive","yellow","lime","teal","cyan","pink","blue"]; +config.soloUse = false; +config.replaceNewlines = " … "; +config.hlOnlyShowMatch = false; + +// automatically added by config upgrade: +//config.httpLocation = "http://mydomain.com:9090"; +config.uploadToImgur = false; +config.imgurClientId = "CENSORED"; + +// automatically added by config upgrade: +config.replySnippetLength = 46; +config.mediaConversions = { + 'webp': 'png' +}; +config.emphasizeAction = true;