Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord forward #850

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from
Open

Discord forward #850

wants to merge 3 commits into from

Conversation

jimsug
Copy link
Contributor

@jimsug jimsug commented Apr 30, 2017

This plugin provides a lightweight means of forwarding messages from Hangouts to Discord, while impersonating the original users. It has some advantages over currently proposed #636 but also some drawbacks, some of which can be overcome with a little work, and others which at the moment can't (due to technical limitations of the Discord platform).

Configuration

  • discord_forward - set to true to enable forwarding
  • discord_webhook - a list of webhook URLs for the same discord channel. I recommend using two webhooks per Discord channel. The plugin will alternate between these, as a workaround for the Discord Android mobile issue https://trello.com/c/6ZZTEBJw
{
    "conversations":
        "convid":
             "discord_forward" : true,
             "discord_webhook":
                 [
                     "<discord_webhook_url>",
                     "<discord_webhook_url>"
                 ]
}

Notes

  • As the plugin will ignore the bot's own messages, command responses will not be forwarded.
    • Also, if messages are being forwarded from synced rooms, you'll need to forward them seperately. I recommend using different webhook pairs for each synced room to avoid author collapsing.
  • There is a known, low-priority issue for iOS mobile users where long-press context on webhook messages are not possible - that is, you can't copy the text, delete the message, or add reactions from the long-press menu like you would be able to on Android or desktop.
  • This only provides one-way forwarding of messages. To send messages back to Hangouts, I'd recommend using a Discord bot and post messages to a sink, but that's probably beyond the scope of this repo.

@jimsug jimsug changed the title discordfwd.py Discord forwarding Apr 30, 2017
@jimsug jimsug changed the title Discord forwarding Discord forward Apr 30, 2017
@Terrance Terrance changed the base branch from master to staging December 7, 2018 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant