xNarnia / TCR-TerrariaChatRelay

Self-serving Terraria Chat Relay with extensible chat service support
https://forums.terraria.org/index.php?threads/tcr-terrariachatrelay.78196/
MIT License
32 stars 16 forks source link

Link Discord user with Terraria player #6

Open hmlendea opened 3 years ago

hmlendea commented 3 years ago

Hello,

I think it would be a really neat feature to link/pair a Terraria player with a Discord user, this way the correct name will be displayed on both ends.

Example Discord user DiscoUsr links with the TerraPlayer player on the Terraria server When DiscoUsr writes something in Discord, the TerraPlayer name will be used in the Terraria chat instead When the TerraPlayer player writes something in Terraria, the DiscoUsr name will be used in the Discord chat instead

Usage example The Terraria player executes the /discord-link command and received a 6 digit code which he then has to send to the bot in Discord as a private message. When the bot receives that code, it saves the the linking in a json file that contains pairs of Discord user IDs and Terraria names.

Nice to have The messages sent to Discord could use Webhooks for linked players, so that the name and profile picture of the user will be displayed instead of those of the bot.

xNarnia commented 2 years ago

I think this would be useful for command permissions. Putting this into the roadmap for future releases. Thanks!

EthanG78 commented 1 year ago

Any update on the progress of this feature? The Discord server I am a part of has recently launched a Terraria server and is looking for some specific Discord-Terraria integration. Mostly this has to do with only allowing the user to do certain things on the Terraria server once a Discord account has been linked.

If no major progress has been done towards this, I will open a PR and work on it.