Communication - slack-to-irc bridge bot
This commit is contained in:
parent
69ba4b63e2
commit
12360d302c
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "communication/slack/bot"]
|
||||||
|
path = communication/slack/bot
|
||||||
|
url = https://github.com/ekmartin/slack-irc
|
14
communication/slack/README.md
Normal file
14
communication/slack/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Slack sync to IRC
|
||||||
|
Bot that will do sync between slack and certain slack channnels
|
||||||
|
|
||||||
|
# Prerequisites
|
||||||
|
nodejs (tested with 0.12)
|
||||||
|
|
||||||
|
npm install -g slack-irc
|
||||||
|
|
||||||
|
# Files
|
||||||
|
openfest-slack-to-irc-sync.json - config with sensitive information removed
|
||||||
|
We are using ssl to connect
|
||||||
|
|
||||||
|
slack-irc@.service systemd templated unit so you can run multiple instances
|
||||||
|
Running multiple slack-irc instances has not been tested
|
1
communication/slack/bot
Submodule
1
communication/slack/bot
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f005c1f4536fe47799bc2741ff09730e7fdea891
|
18
communication/slack/config/openfest-slack-to-irc-sync.json
Normal file
18
communication/slack/config/openfest-slack-to-irc-sync.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[{
|
||||||
|
"nickname": "SlackSync",
|
||||||
|
"server": "marla.ludost.net",
|
||||||
|
"token": "CHANGE ME",
|
||||||
|
"channelMapping": {
|
||||||
|
"private": "private"
|
||||||
|
"#bulgaria-hall": "#openfest-bulgaria-hall",
|
||||||
|
"#chamber-hall": "#openfest-chamber-hall",
|
||||||
|
"#third-hall": "#openfest-third-hall"
|
||||||
|
},
|
||||||
|
"ircOptions": {
|
||||||
|
"userName": "slacksync",
|
||||||
|
"realName": "Slack to IRC bidirectional Sync Bot",
|
||||||
|
"debug": true,
|
||||||
|
"secure": "true",
|
||||||
|
"port": 6697
|
||||||
|
}
|
||||||
|
}]
|
12
communication/slack/config/slack-irc@.service
Normal file
12
communication/slack/config/slack-irc@.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Slack to IRC sync bot (%i)
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=nobody
|
||||||
|
Group=nogroup
|
||||||
|
PrivateTmp=yes
|
||||||
|
ExecStart=/usr/bin/slack-irc -c /etc/slack-irc/%i.json
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user