irc/piraatit: add discord-irc

This commit is contained in:
Aminda Suomalainen 2017-11-25 14:37:22 +02:00
parent a6dbbf0ec3
commit 988956633a
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
3 changed files with 41 additions and 1 deletions

View File

@ -15,4 +15,8 @@ Notes:
to be started manually as I don't have root on Kapsi and they don't have
systemd or user services at the time of writing and without lithing that
would require logging in once after every reboot for it to start doing
anything.
anything
* discord-irc assumes that you have cloned the git repo and installed using
npm there.
* offtopic, but remember to enable Discord developer mode in settings
for being able to right click channel name to copy ID.

View File

@ -0,0 +1,33 @@
[
{
"nickname": "D6",
"server": "fi.pirateirc.net",
"discordToken": "CENSORED",
"autoSendCommands": [
["NICKSERV", "IDENTIFY D6 CENSORED"],
["NICKSERV", "REGGAIN D6 CENSORED"],
["MODE", "D6", "-i"]
],
"channelMapping": {
"374659905983873025": "#piraattinuoret",
"374867585868496897": "#pinu_hallitus",
"375207988459470849": "#test",
"381011785962225664": "#aaltopiraatit"
},
"ircOptions": {
"userName": "D6",
"realName": "Admin: Mikaela#6940",
"password": "CENSORED",
"port": "6697",
"secure": "true",
"sasl": "true",
"stripColors": "true"
},
"format": {
"ircText": "<{$displayUsername}> {$text}",
"discord": "<`{$author}`> {$withMentions}"
},
"ircNickColor": false,
"commandCharacters": ["!", "_"]
}
]

3
irc/piraatit/discord-irc/start Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd /home/discord-irc/discord-irc
npm start -- --config /home/discord-irc/config.json