GravityWolfNotAmused / PlayerCountDiscordBot

A simple discord bot that updates their status' to show player counts.
MIT License
36 stars 16 forks source link

[BUG] Hostname as address is not working #48

Closed aklo closed 2 years ago

aklo commented 2 years ago

I'm using docker compose to run the program. The docker was working fine a few days ago. The value for BOT_PUBADDRESSES is hostname.

Screenshots image

GravityWolfNotAmused commented 2 years ago

Thank you for posting this, please give me one moment to look it over, and post somethings for myself.

GravityWolfNotAmused commented 2 years ago

Can you please remove all tokens from your compose file and post it as well?

aklo commented 2 years ago
   BOT_NAMES: "ProjectZomboid"
   BOT_PUBADDRESSES: "hostname"
   BOT_PORTS: "16969"
   BOT_DISCORD_TOKENS: "*"
   BOT_UPDATE_TIME: "30"
   BOT_STATUSES: "0"
   BOT_USENAMETAGS: "false"
   BOT_PROVIDERTYPES: "0"
   BOT_APPLICATION_VARIABLES: "SteamAPIKey,*"
GravityWolfNotAmused commented 2 years ago

@aklo I think I have determined the issue that you are facing, and have created a fix in #49 . The problem is that I was treating all API returns as if they were JSON object; however, address resolution is purely a string. This will be in dev shortly, if you could test the dev tag in docker <3

aklo commented 2 years ago

Perfect! It's up and running now. Thank you so much!

GravityWolfNotAmused commented 2 years ago

I'll release this to the latest tag tomorrow. Thank you for reporting your issue.