From 3557f06ec81599fa6142952f7be5b4843bcd8578 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Mon, 24 Jul 2017 12:57:04 +0300 Subject: [PATCH] Add new sync bot --- .gitmodules | 3 ++ communication/.gitignore | 1 + communication/config.toml | 75 ++++++++++++++++++++++++++++++++++++++ communication/matterbridge | 1 + 4 files changed, 80 insertions(+) create mode 100644 .gitmodules create mode 100644 communication/.gitignore create mode 100644 communication/config.toml create mode 160000 communication/matterbridge diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..58173d3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "communication/matterbridge"] + path = communication/matterbridge + url = git@github.com:zeridon/matterbridge.git diff --git a/communication/.gitignore b/communication/.gitignore new file mode 100644 index 0000000..14002e2 --- /dev/null +++ b/communication/.gitignore @@ -0,0 +1 @@ +botconfig-2017.toml diff --git a/communication/config.toml b/communication/config.toml new file mode 100644 index 0000000..bdb6abf --- /dev/null +++ b/communication/config.toml @@ -0,0 +1,75 @@ +[irc] + [irc.ludost] + Server="irc.ludost.net:6697" + UseTLS=true + UseSASL=false + SkipTLSVerify=false + Nick="Synchrotron" + MessageDelay=200 + MessageQueue=1000 + MessageLength=500 + IgnoreNicks="Slacksync Slacksync-OF" + IgnoreMessages="^~~ badword" + RemoteNickFormat="[{PROTOCOL}] <{NICK}> " + ShowJoinPart=false + +[slack] + [slack.openfest] + # change with real token + Token="xoxp-some-letters-and-numbers" + IconURL="https://robohash.org/{NICK}.png?size=48x48" + NickFormatter="plain" + NicksPerRow=4 + EditDisable=false + EditSuffix=" (edited)" + PrefixMessagesWithNick=false + IgnoreNicks="Slacksync Slacksync-OF" + IgnoreMessages="^~~ badword" + RemoteNickFormat="[{PROTOCOL}] <{NICK}> " + ShowJoinPart=false + +[api] + [api.local] + BindAddress="0.0.0.0:4242" + Buffer=1000 + Token="a-real-not-disclosed-token" + +[[gateway]] + name="si-general" + enable=true + + [[gateway.inout]] + account="irc.ludost" + channel="#openfest" + + [[gateway.inout]] + account="slack.openfest" + channel="general" + +[[gateway]] + name="si-noc" + enable=true + + [[gateway.inout]] + account="irc.ludost" + channel="#of-noc" + + [[gateway.inout]] + account="slack.openfest" + channel="noc" + +[[gateway]] + name="api-fan" + enable=true + + [[gateway.in]] + account="api.local" + channel="api" + + [[gateway.out]] + account="slack.openfest" + channel="general" + + [[gateway.out]] + account="irc.ludost" + channel="#openfest" diff --git a/communication/matterbridge b/communication/matterbridge new file mode 160000 index 0000000..bd97357 --- /dev/null +++ b/communication/matterbridge @@ -0,0 +1 @@ +Subproject commit bd97357f8d30322dc9c9745c47b9461d862844ba