Courvix-Network / OVH-DDoS-Alerts

Checks the OVH API to see if an IP address is in forced mitigation mode and sends Discord alerts.
MIT License
12 stars 9 forks source link

Idea [Channel Topic/Name changer] #4

Open mrc4tt opened 2 years ago

mrc4tt commented 2 years ago

Hi, @Courvix.

I hope you're well ;-)

I have an idea for this script (if it's possible - I'm willing to donate that!)

Make it possible to set a custom channel on "script", so it changes channel-name and channel-topic. Example output for DDoS attack: 1) Channel are named as 🟢-server-status / for normal operation. 2) DDoS alerts coming from the script (webhook): - Channel-Name changes:🔴-server-status - Channel-Topic changes: Status of our network and servers - Current alert-status: 🔴DDoS confirmed under mitigation.

Example output for Mitigation mode has been disabled: 1) when Mitigation mode has been disabled, so it will change anything back as default. - Channel-Name changes:🟢-server-status - Channel-Topic changes: Status of our network and servers - Current alert-status:🟢OK

Do you think it's possible from the current script?

ry-ry-ry commented 2 years ago

I do think it would be possible, but only if it was converted into a full fledged Discord bot. At the moment, it simply posts a request to a Discord webhook so changing channel names and so on is not possible.

I'll leave this issue open so other people can see the idea and possibly implement it into a bot.