khyperia / weechat-discord

Unmaintained! And also apparently this is against their TOS so DON'T USE THIS -- Weechat plugin for Discord support - https://weechat.org/ https://discordapp.com/
MIT License
51 stars 24 forks source link

Settings for default display names / name overrides #2

Closed khyperia closed 7 years ago

khyperia commented 8 years ago

Add settings for default display names of various things.

  1. Format of buffer name as displayed in weechat (short_name) - might need arbitrary format string with variable replacement (server name, server ID, channel name, channel ID - also perhaps another format string for privmsg buffers)
  2. Format of logfile name (name) and other things like go.py (although go.py should not be using the same name as the logfile name, but that's a separate issue)
  3. What name a mention gets translated to (discord username or account name, and if the discriminator number is tacked on)
  4. What name is displayed in the panel where the author of a message is displayed
  5. What name is written to the logfile for both mentions and authors (this may not be possible to have different than the previous two items?)
  6. Anything else discovered when having places in code that translate between Discord-named things and weechat things.

In addition, there should be a setting for overriding nicknames:

/discord name 123456789 the_goofy_horse

would set the following setting

plugins.var.weecord.name.123456789 = "the_goofy_horse"

which would be checked by the discord syntax to human name translation, as well as human name to syntax first, before discord's data is used to display the name.

khyperia commented 7 years ago

Resolved in e233426fd7060a5f3fb21a6bcbcaa94982cad281