fiskenslakt / pzsd-bot

Discord bot for PZSD server
MIT License
2 stars 0 forks source link

Add ability to add aliases for names #27

Open fiskenslakt opened 4 months ago

fiskenslakt commented 4 months ago

Something like the /register command that lets you add arbitrary amounts of aliases associated with a name in the user table, which one can invoke instead of the name for pointing.

While the /register command is admin only, I think it's not unreasonable to make this command available to anyone, but I'm a little undecided on that.

fiskenslakt commented 4 months ago

Oh there should probably also be a command to list all current aliases for a given name as well.

fiskenslakt commented 4 months ago

As discussed in the server, we should drop the name column in the pzsd_user table and just have the new alias table be responsible for storing names associated with a user. There should be a column is_primary to denote what alias is the primary name, for purposes of displaying on leaderboards and such.