nwesterhausen / valheim-discordconnector

A plugin to connect a Valheim server to a discord webhook.
https://discord-connector.valheim.games.nwest.one/
MIT License
27 stars 13 forks source link

Feature Request - a reload config command (in chat or console) OR an option to detect changes #61

Closed CruxCraft closed 2 years ago

CruxCraft commented 3 years ago

It would be nice if the config files could be reloaded via chat or console

example in chat: !dcreload (admin only)

OR a configurable option to detect file changes (maybe doesnt load change if bad config?)

I am going through editing messages & hate that I have to restart the server on my players if I want to see a change

nwesterhausen commented 3 years ago

I will have to look into having the config reload with !vdcreload or something. could definitely be useful

nwesterhausen commented 3 years ago

An update on this, I do have the ability to reload the config but having difficulty figuring out how to tie it into the console.

I have verified it works calling while the game is running using the discord bot webhook in a test version of that. So just remains getting a command or something available. Might cave and use Jotunn ..

CruxCraft commented 3 years ago

I have verified it works calling while the game is running using the discord bot webhook in a test version of that. So just remains getting a command or something available. Might cave and use Jotunn ..

While I do already use Jotunn, my thoughts are that the feature wouldn't be worth having a that dependency...

What about just having a config that updates on its own every so often? Like I could set it to 360 minutes or something... That way you can have it update within a reasonable time without having to shut the server down...

nwesterhausen commented 3 years ago

Yeah something like that doable. Might just make it a single toggle for simplicity "Check for config updates every hour"

nwesterhausen commented 2 years ago

Config should be reloaded when it detects a change.