Simple Discord Link Bot

Simple Discord Link Bot

1M Downloads

[Feature Request] A method for applying a filter or regex-replace to player usernames.

DorkOrc opened this issue ยท 2 comments

commented

Suggestion:

Having a way to filter or regex-replace in the username rather than the whole message.

Context:

On my server, players can apply custom (team-) suffixes to their name in the form of "flairs". Flairs can be little coloured emojis and pride flags. If the flair is a pride flag, in-game certain vertical bar characters are used and coloured uniquely to make up the flag... but when they're relayed to Discord well...

Image

I would love to be able to replace all instances of those vertical bars with a normal pride flag character or a custom emoji from the Discord server.

(That image also showcases #145 and this feature could fix that issue too with a simple _ -> \_ replacement)

commented

I will drop this one into 3.3.0. This will be a non-rollback config change, to allow applying filtering to usernames, so would rather not do it on a patch version.

Unless I merge this with the current filtering system. Will have to see what works better