From 988956633a248c5e434d49c4dd323947ed76acee Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 25 Nov 2017 14:37:22 +0200 Subject: [PATCH] irc/piraatit: add discord-irc --- irc/piraatit/README.md | 6 ++++- irc/piraatit/discord-irc/config.json | 33 ++++++++++++++++++++++++++++ irc/piraatit/discord-irc/start | 3 +++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 irc/piraatit/discord-irc/config.json create mode 100755 irc/piraatit/discord-irc/start 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