diff --git a/irc/piraatit/README.md b/irc/piraatit/README.md index 04d6c1a..d1a1a03 100644 --- a/irc/piraatit/README.md +++ b/irc/piraatit/README.md @@ -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. diff --git a/irc/piraatit/discord-irc/config.json b/irc/piraatit/discord-irc/config.json new file mode 100644 index 0000000..c020cbf --- /dev/null +++ b/irc/piraatit/discord-irc/config.json @@ -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": ["!", "_"] + } +] diff --git a/irc/piraatit/discord-irc/start b/irc/piraatit/discord-irc/start new file mode 100755 index 0000000..0671dd6 --- /dev/null +++ b/irc/piraatit/discord-irc/start @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cd /home/discord-irc/discord-irc +npm start -- --config /home/discord-irc/config.json