tModLoader TCR - TerrariaChatRelay

Discussion in 'Works-in-Progress' started by Panini, Mar 14, 2019.

  1. Panini

    Panini Terrarian

    Self-serving Terraria Chat Relay with extensible chat service support
    Send messages from Terraria to your favorite Chat Services!

    Currently supports:


    The beta has been released! Please report any issues you find on the GitHub issue tracker, Discord, or this forum post!

    This is a server-side only mod! It will only work from a server console using tModLoaderServer.exe.

    Hi Everyone! :dryadsmile:

    While this isn't my first contribution to the community, this is my first mod!
    It will allow you to send chat from Terraria to multiple Chat Services (such as Discord) and vice versa.

    I host a Discord community where I like to host game servers for my members.
    Coming back to Terraria, I noticed there are some crucial plugins missing for dedicated servers.
    I hope to fill that gap with this plugin and many more!
    What's Done:
    • Terraria <-> Discord Chat!
      Send chat from Terraria to Discord and vice versa!
    • Extensible Eventing Framework!
      Helps other developers easily add on to the code so they can help out!
    • Self-serving relay!
      No additional installations required. All you need is the mod installed!
    • Server-side only design!
      No need to waste other people's resources, only the servers!
    ✏️ To-do:
    • Nothing at the moment!
    ⬇️ Download: TerrariaChatRelay - Beta 0.6
    ✉️ GitHub SourceCode: Everni/TCR-TerrariaChatRelay
    ⭕ Mod Discord: Join the Panini Mods Discord Server!

    Post-Release Plans
    • Allow generation of multiple instances on any type
    • Add support for other chat services (Slack, IRC, Terraria to Terraria server maybe?)
    • Allow reload from console
    • Allow sending of Terraria server console commands straight from Chat Services
    • General/Admin privilege Chat Service commands
      See who is playing on the server
      See current ping to server
      See world information (size, corrupt/crimson, hardmode or not, etc.)
    If you want to suggest a chat service, prioritize another, or contribute some code, please feel free to say so!

    -Add command support
    -Add new configuration flags for showing new message and command prefix
    -Add message queue so bot doesn't overload when too many messages are sent at once
    -Set compression flag to true in case it works
    --(Should speed up connection and reduce bandwidth usage)

    Last edited: Apr 8, 2019
  2. FiveSix78

    FiveSix78 Terrarian

    Coincidentally I recently started looking for a mod like this one, but all of them have either been deprecated for years or are incompatible with TML. It's great to see that you're filling this big hole in the modding community!
  3. Panini

    Panini Terrarian

    I'm so close yet so far. I havw transmission going back and forth from Discord to Terraria, but only in debug mode...?

    I'll be looking more into it this weekend. Cross your fingers!
    FiveSix78 likes this.
  4. Panini

    Panini Terrarian

    I've updated the GIF, GitHub to-do's, and original post to-do's with what I have left.
    Discord <-> Terraria chat works!... Only on Windows.

    For some reason, I can't get it to work on my Linux machine. I'm wondering whether it's my firewall or my own Linux server? Maybe it's just some weird Linux only bug? Once I get that fixed, it'll be ready for release.

    Stay tuned everyone :dryadsmile:
    Last edited: Apr 3, 2019
    FiveSix78 likes this.
  5. Panini

    Panini Terrarian

    Resolved the connectivity issues! It works on Linux and Windows from Discord <-> Terraria. I'm going to get everything finalized, polished, and hopefully have a release ready soon. Maybe a week or two depending on my schedule (been a very busy month!)

    Stay tuned!


    Repost Edit: I've updated the original post with a link to the Mod's Discord! Instead of continuously posting updates here, I will save them for the Discord announcements channel. I'll post the link here for convenience

    ⭕ Mod Discord:
  6. Panini

    Panini Terrarian

    Mod beta has been released. Please refer to the original post for a download.
    Last edited: Apr 4, 2019
    FiveSix78 likes this.
  7. NuovaPrime

    NuovaPrime Spazmatism

    Nice to see that this is actually out now, I know a ton of people that would love something like this. Great work :)
    Panini likes this.
  8. Panini

    Panini Terrarian

    Thank you Nuova ^_^ I've updated the mod to deploy a hotfix.
    For those relaying to only one channel, or have encrypted connections, this will fix the mod and get it to working order.

    Thank you, Khaki, for your incredible patience and testing!