Syriiin / irc-to-discord

IRC to Discord and vise-versa chat relay
MIT License
6 stars 2 forks source link

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

Open Syriiin opened 3 years ago

Syriiin commented 3 years ago

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
                    }
                }
            ]
        }
    }
    // ...
}