imi-tat0r / CS2-DiscordChatSync

A plugin for Counter-Strike 2 that syncs chat between the game and a Discord channel.
MIT License
18 stars 0 forks source link

[Suggestion] Server crash alerts #10

Open mavproductions opened 6 months ago

mavproductions commented 6 months ago

Hey!

It would be cool if you could provide a sudden server disconnect interrupt message some how. I'm not sure if there's an exact srcds line you could look for, or simply if the DiscordChatSync loses a connection with the server itself.

Curious of your thoughts! It would help me personally, and I'm sure others would enjoy this as well!

imi-tat0r commented 6 months ago

Well if the server crashes, the plugin (and therefore the discord bot) is offline as well. I can try to post a message as soon as the server is back up, but I would have to see if and how that would be possible to detect.

mavproductions commented 6 months ago

Well if the server crashes, the plugin (and therefore the discord bot) is offline as well. I can try to post a message as soon as the server is back up, but I would have to see if and how that would be possible to detect.

Oh that's rough, so a down CS2 server = no communication and bot can't send a final "I'm dead" message, before the server hard shuts down, as it relies on the .dll(plugin) itself.

That's unfortunate, but perhaps valve will add some better indicators down the road.