Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ RUN wget https://github.com/42wim/matterbridge/releases/download/v1.24.0/matterb
COPY . .

ARG DISCORD_TOKEN
ARG MATTERBRIDGE_IRC_TGBOT_PASSWORD
ARG MATTERBRIDGE_TELEGRAM_DTEKIRC_TOKEN
RUN sed -i s/DISCORD_TOKEN/\"$DISCORD_TOKEN\"/ matterbridge.toml
RUN sed -i s/MATTERBRIDGE_IRC_TGBOT_PASSWORD/\"$MATTERBRIDGE_IRC_TGBOT_PASSWORD\"/ matterbridge.toml
RUN sed -i s/MATTERBRIDGE_TELEGRAM_DTEKIRC_TOKEN/\"$MATTERBRIDGE_TELEGRAM_DTEKIRC_TOKEN\"/ matterbridge.toml
RUN cat matterbridge.toml
RUN chmod +x matterbridge*
CMD ./matterbridge-1.24.0-linux-64bit
Expand Down
57 changes: 55 additions & 2 deletions matterbridge.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
################################# IRC #################################
[irc]

[irc.dtek]
Server = "localhost:6667"
Nick = "Discord"
SkipTLSVerify = true

[irc.tgbot]
Server="irc.dtek.se:6697"
RemoteNickFormat="<tg-{NICK}> "
UseTLS=true
SkipTLSVerify=true
Nick="telegrambot"
Password=MATTERBRIDGE_IRC_TGBOT_PASSWORD
Charset="utf-8"

############################ Dtek Telegram ############################
[telegram]

[telegram.dtekirc]
Token=MATTERBRIDGE_TELEGRAM_DTEKIRC_TOKEN
RemoteNickFormat="&lt;{NICK}&gt; "
MessageFormat="HTMLNick"

############################### Discord ###############################
[discord]

[discord.clipboard]
Token = DISCORD_TOKEN
Server = "Datateknologsektionen, Chalmers Studentkår"


############################### General ###############################
[general]
RemoteNickFormat="<{NICK}> "

############################ #dtek Gateway ############################
[[gateway]]
name = "mygateway"
name = "dtek"
enable = true

[[gateway.inout]]
Expand All @@ -24,3 +46,34 @@ RemoteNickFormat="<{NICK}> "
[[gateway.inout]]
account = "discord.clipboard"
channel = "irc"

[[gateway.inout]]
account="telegram.dtekirc"
channel="-292431925"

############################ DHack Gateway ############################
[[gateway]]
name="dhack"
enable=true

[[gateway.inout]]
account="irc.tgbot"
channel="#dhack"

[[gateway.inout]]
account="telegram.dtekirc"
channel="-314089083"

########################## Dtek Spam Gateway ##########################
[[gateway]]
name="tg_dtek_spam"
enable=true

[[gateway.inout]]
account="irc.tgbot"
channel="#dtek-spam"

[[gateway.inout]]
account="telegram.dtekirc"
channel="-1001393278925"