42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.56k stars 617 forks source link

samechannelgateway with irc and discord cannot find channelnames #173

Closed NikkyAI closed 7 years ago

NikkyAI commented 7 years ago

Please answer the following questions.

Which version of matterbridge are you using?

run matterbridge -version version: 0.12.0 8c7549a

Please describe the expected behavior.

using the [[samechannelgateway]] configuration for bridging irc and discord

[[samechannelgateway]]
#REQUIRED and UNIQUE
name="bridge"
enable=true
   accounts = [ "irc.esper", "discord.chat" ]
   channels = [ "channelname" ]

i expected it to join channelname on discord and #channelname on irc

Please describe the actual behavior.

Use logs from running matterbridge -debug if possible.

it fails to join either channelname on irc or #channelname on discord

I suspect this will happen between any APIs that have a required prefix and those that not

Please add your configuration file

(be sure to exclude or anonymize private data (tokens/passwords))

[irc]
    [irc.esper]
    Server="irc.esper.net:6697"
    Nick="bridgebotname"

    UseTLS=true
    UseSASL=true

    NickServNick="username"
    NickServPassword="hunter2"

    IgnoreNicks="cord spammer"

[discord]
    [discord.chat]
    Token="token"
    Server="servername"
    EditDisable=false
    EditSuffix=" (edited)"
    IgnoreNicks="[cord] spammer"
    RemoteNickFormat="<{NICK}> "
    ShowJoinPart=false

[[samechannelgateway]]
#REQUIRED and UNIQUE
name="bridge"
enable=true
   accounts = [ "irc.esper", "discord.chat" ]
   channels = [ "channelname" ]

# working configuration
# [[gateway]]
# #REQUIRED and UNIQUE
# name="channelname"
# enable=true
#     [[gateway.inout]]
#     account="irc.esper"
#     channel="#channelname"

#     [[gateway.inout]]
#     account="discord.chat"
#     channel="channelname"
NikkyAI commented 7 years ago

duplicate of #129