using System; using System.Collections.Generic; using System.Text; namespace BetterSecondBot.HttpServer.Control.Actions { public class Logout : HTTP_commands_post { public override string Helpfile { get { return "Makes the bot logout
Returns OK,I dont want to go if accepted"; } } public override string[] CallFunction(string[] args) { if (bot != null) { if (httpserver.HTTPCnCmode == true) { httpserver.KillBot(); return new string[] { "OK", "Bot Shutting down" }; } else { bot.KillMePlease(); return new string[] { "OK", "I dont want to go" }; } } else { return Failed("No bot logged in"); } } } }