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.65k stars 617 forks source link

Can an IRC bot read a Discord message? #2171

Open dunzooo opened 3 months ago

dunzooo commented 3 months ago

First of all, thanks for Matterbridge. It's very neat and easy to install.

To cut a long story short, there's a trivia bot on my IRC server and I'd like users of my Discord server to be able to play. The gateway works fine, but the IRC bot doesn't seem to take Discord users' answers into account. Is it even possible to make that work?

Thanks in advance for your answer.

telgareith commented 2 months ago

How is the bot configured? does it directly connect to IRC? If so, this sounds like the bot needs it's command input parsing changed to allow "matterbridgeRelay: /slap", and discord users will need to escape their slash commands with a backslash- "\/slap".

Is that close to what you want? Obviously having the slash command show up in IRC isn't ideal, but the only other way would be a discord bot that consumes the slash command and passes it to the IRC bot, or modifying matterbridge.

Mikaela commented 2 months ago

If your IRC network supports RELAYMSG, you could UseRelayMsg = true and make the bot op.

Otherwise I agree that this is a feature request for the other bot.