Coder Social home page Coder Social logo

irc-to-discord's People

Contributors

dependabot[bot] avatar syriiin avatar xpaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

irc-to-discord's Issues

Fix "Embed.Empty" and duplicate messages

On IRC it looks like this:

22:24 <> <K​owiz> https://twitter.com/richgel999/status/1330767132003606528
22:24 <> <K​owiz> Embed.Empty: https://twitter.com/richgel999/status/1330767132003606528
  1. Skip title if its empty (Embed.Empty)
  2. Do not send embed the url was already contained in the actual message

Support discord replies

I suggest just prepending the user the reply is to. I suspect this requires extra work if you are replying to a relayed message (so you need to regex out the original irc username?)

image

Disable formatting conversion

The markdown->irc is quite buggy, and formats things it shouldn't (anything math, or anything with underscores breaks down).

I suggest just disabling it and sending it as-is, which is better than incorrectly formatted strings.

Propagate embed fields to IRC

image

And on IRC:
11:13 <+D|> <S​teamDB> Counter-Strike: Global Offensive: https://steamdb.info/app/730/graphs/

Perhaps it could be done only for inline tags.

Feature request: user passthrough

Add a config option or even runtime configurable option to add discord or irc bridges to a whitelist where their message is either sent as is (and not prefixed with the bots name), or reparsed to use the name inside the message instead of the bot.

This can be an alternative option to #8 where an external service only needs to talk to irc OR discord, and the existing irc-to-discord bridge will make that service serve both protocols

Add zwj when replying to Discord users

ZWJ was removed in reply nick so it could ping when replying to IRC users, but when replying to Discord users it should stay.

If send a message on Discord and someone replies to it, it pings me on IRC as well.

I think this should do the trick:

header = f"<{format_name(author)} \u2192 {format_name(reply_name, replied_message.author != self.user)}> "

Feature request: suppress relayed link embeds in discord for specific users (ie. irc bots)

Would prefer to make this more flexible and by allowing for a given set of configuration options to be applied to specific users.

A config something like

{
    "irc": {
        // ...
        "formatting": {
            // ... default settings ...
        }
    },
    "discord": {
        // ...
        "formatting": {
            // default settings
            // ...
            "suppressEmbeds": false,
            "overrides": [
                {
                    "users": [
                        // irc users to apply these settings to messages from
                        "Renol"
                    ],
                    "settings": {
                        "suppressEmbeds": true
                    }
                }
            ]
        }
    }
    // ...
}

Feature request: ignore list

Add a config option or even runtime configurable option to add discord or irc users into an ignore list, and their messages won't get bridged.

This can come in handy if an external service is sending messages to both irc and discord, and don't want duplicate messages

Zero width spaces are preserved when relaying irc messages to discord

Zero width spaces are added by the bridge to the author of discord messages when relaying to irc in order to prevent unintended mention notifications for irc users who have the same username as a discord user who sends a message.
It makes sense that the bridge should filter out these zero width spaces again before processing them for discord as they might be accidentally included in usernames where a discord mention is intended.
eg. irc user copy pastes a discord username from the bridge's message and tries to mention the discord user by adding an @ to the beginning. No mention will occur because the zero width space was copied along with the username.

Should probably only strip zero width spaces where there would otherwise be a mention match, but it probably wont matter much if all zero width spaces are purged regardless.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.