Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

IRC Nicknames via user Notes (or something) #6

Open
Scrxtchy opened this issue Mar 19, 2017 · 6 comments
Open

IRC Nicknames via user Notes (or something) #6

Scrxtchy opened this issue Mar 19, 2017 · 6 comments

Comments

@Scrxtchy
Copy link

Scrxtchy commented Mar 19, 2017

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

@creesch
Copy link
Owner

creesch commented Mar 19, 2017

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
Copy link
Owner

creesch commented Mar 19, 2017

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

@Scrxtchy
Copy link
Author

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

@creesch
Copy link
Owner

creesch commented Mar 19, 2017

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

@creesch
Copy link
Owner

creesch commented Mar 19, 2017

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.

@Scrxtchy
Copy link
Author

Scrxtchy commented Mar 19, 2017

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"}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants