Hey, would love for the plugin to update the discord message when the server goes offline to @someone.
i was able to do this by changing this bit of code :
########
if (!string.IsNullOrEmpty(config.Content))
{
message.AddContent(ParseField(config.Content));
}
############
to:
if (!string.IsNullOrEmpty(config.Content)&&_isOnline == false))
{
message.AddContent(ParseField(config.Content));
}
##########
While this worked, by adding my Disocord ID to #Content: "" in the config file. im having trouble getting the send update message to update (edit) the discord message back to nothing so content="" i tried adding a json property Content2"" and adding an else statement after the If to message.AddContent(ParseField(config.Content2)); however im running out of talent and cant make it work, i was very close.. Are you able to implement something like this :))) would help to get pinged from the discord message when the server goes down.. Might be worth having its own refresh interval so that it doesnt @in discord when server restarts? is that possible?
Thanks, this is an awesome plugin