tags:

views:

42

answers:

0

The bot is being written in C# and I'm using the Smartirc4net library.

If a server goes down (e.g a webserver) I want to manually set the status for it on the IRC bot. When a user calls !status I want it to reply with Online/Offline.

I can do that, however I'm not too sure how to set it. For e.g the server goes offline then I manually perform a command on IRC such as !setstatus Offline, it should save it so that when a user calls !status it displays Offline and vice versa.

How can I achieve this?