discordIRCd icon indicating copy to clipboard operation
discordIRCd copied to clipboard

IRC Nicknames via user Notes (or something)

Open Scrxtchy opened this issue 8 years ago • 6 comments

This might not be a catch-all solution, as I expect some users actually use notes for a purpose, but it would be helpful to have an ability to alias a user to a name https://discord.js.org/#/docs/main/stable/class/User?scrollTo=note

Some messages I get will look like

Their account name uses supported alphanumeric characters as an added detail, but it this didn't work out

irc;([a-zA-Z0-9_\\[\]\{\}\^`\|]+) could be a suggestion to use irc nicks alongside regular notes but I'll let you figure it out

Scrxtchy avatar Mar 19 '17 13:03 Scrxtchy

Oh that is actually a fairly good idea.

I want to explore something else as well. Officially irc doesn't support those characters for usernames, however I suspect that many modern clients have no issue with them.

So if I would remove part of the username scrubbing (and it would raise no issues with irc clients) would you still need this feature?

creesch avatar Mar 19 '17 13:03 creesch

As an addition, I am planning to abuse WHOIS to display things like notes and roles from irc.

creesch avatar Mar 19 '17 13:03 creesch

I'm using ZNC as a middleman, so I'm unsure if even that will support erroneous nicknames

Scrxtchy avatar Mar 19 '17 13:03 Scrxtchy

Fair enough, I'll implement your suggestion then :)

creesch avatar Mar 19 '17 13:03 creesch

It also occured to me that my current method of making usernames valid will possibly lead to duplicate usernames. I will need to fix that as well.

creesch avatar Mar 19 '17 13:03 creesch

A WHOIS to display their account/display name as their real values would be very helpful

The Docs say that Notes are read only, I wonder if there's another function for setting it otherwise they have a url of https://discordapp.com/api/v6/users/@me/notes/[USERID] Alongside request params, generic authentication/identification

json {note: "content"}

Scrxtchy avatar Mar 19 '17 13:03 Scrxtchy