winglessraven / AMP-Discord-Bot

Discord Bot plugin for AMP
37 stars 6 forks source link

Ability to show Playfab Join Code in server info panel #59

Closed dirkalakader closed 1 year ago

dirkalakader commented 1 year ago

Describe the solution you'd like I'd like to be able to have the bot grab the latest join code, maybe from the console output of an instance, and display/update that join code within the server info message. It would also be awesome if we could pull the IP:Port info from that same console output to display, although this doesn't change as often as the join code, so typing it into the bot is fine.

Additional context I'm using the bot on a Valheim instance with crossplay enabled. The join code is output within the console of the instance with text:

Session "[servername]" registered with join code ######
Retry join-code check 99
Session "[servername]" with join code ###### and IP ###.###.###.###:#### is active with # player(s)
winglessraven commented 1 year ago

Could be tricky to do but I'll try and take a look at this over the weekend if I get time (Starfield may get in the way).

winglessraven commented 1 year ago

Option now added. Give it a go and let me know if working OK.

dirkalakader commented 1 year ago

Incredible work! It's working great. It does show up at the bottom of the info panel instead of near the Server Name, Server IP, etc, but that's not an issue for my usage.

Thanks for adding this!

dirkalakader commented 1 year ago

Works great!!