public async void SendStatusAsync(object state) { status.PingServers(); if (ny != status.getNyStatus()) { Statistics.AddStatusChanges(); if (References.IsStartUp() == true) { //if (status.getNyStatus()) await channel.SendMessageAsync("New York City, is now online!") /*success.sendSuccessTempAsync(channel, "Server Status Change", "New York City, is now online!", Colours.generalCol, References.GetDashboardURL(), 5)*/; //if (!status.getNyStatus()) await channel.SendMessageAsync("New York City has gone offline...") /*success.sendSuccessTempAsync(channel, "Server Status Change", "New York City has gone offline...", Colours.generalCol, References.GetDashboardURL(), 5)*/; } else { //if (status.getNyStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "New York City, is now online!", Colours.generalCol, References.GetDashboardURL()); //if (!status.getNyStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "New York City has gone offline...", Colours.generalCol, References.GetDashboardURL()); } ny = status.getNyStatus(); } if (la != status.getLaStatus()) { Statistics.AddStatusChanges(); if (References.IsStartUp() == true) { //if (status.getLaStatus()) await channel.SendMessageAsync("Los Angeles, is now online!") /*success.sendSuccessTempAsync(channel, "Server Status Change", "Los Angeles, is now online!", Colours.generalCol, References.GetDashboardURL(), 5)*/; //if (!status.getLaStatus()) await channel.SendMessageAsync("Los Angelas has gone offline...") /*success.sendSuccessTempAsync(channel, "Server Status Change", "Los Angeles has gone offline...", Colours.generalCol, References.GetDashboardURL(), 5)*/; } else { //if (status.getLaStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "Los Angeles, is now online!", Colours.generalCol, References.GetDashboardURL()); //if (!status.getLaStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "Los Angeles has gone offline...", Colours.generalCol, References.GetDashboardURL()); } la = status.getLaStatus(); } if (nywl != status.getNyWlStatus()) { Statistics.AddStatusChanges(); if (References.IsStartUp() == true) { //if (status.getNyWlStatus()) await channel.SendMessageAsync("New York City Whitelist, is now online!") /*success.sendSuccessTempAsync(channel, "Server Status Change", "New York City Whitelist, is now online!", Colours.generalCol, References.GetDashboardURL(), 5)*/; //if (!status.getNyWlStatus()) await channel.SendMessageAsync("New York City Whitelist has gone offline...") /*success.sendSuccessTempAsync(channel, "Server Status Change", "New York City Whitelist has gone offline...", Colours.generalCol, References.GetDashboardURL(), 5)*/; } else { //if (status.getNyWlStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "New York City Whitelist, is now online!", Colours.generalCol, References.GetDashboardURL()); //if (!status.getNyWlStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "New York City Whitelist has gone offline...", Colours.generalCol, References.GetDashboardURL()); } nywl = status.getNyWlStatus(); } if (lawl != status.getLaWlStatus()) { Statistics.AddStatusChanges(); if (References.IsStartUp() == true) { //if (status.getLaWlStatus()) await channel.SendMessageAsync("Los Angeles Whitelist, is now online!") /*success.sendSuccessTempAsync(channel, "Server Status Change", "Los Angeles Whitelist, is now online!", Colours.generalCol, References.GetDashboardURL(), 5)*/; //if (!status.getLaWlStatus()) await channel.SendMessageAsync("Los Angeles Whitelist has gone offline...") /*success.sendSuccessTempAsync(channel, "Server Status Change", "Los Angeles Whitelist has gone offline...", Colours.generalCol, References.GetDashboardURL(), 5)*/; } else { //if (status.getLaWlStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "Los Angeles Whitelist, is now online!", Colours.generalCol, References.GetDashboardURL()); //if (!status.getLaWlStatus()) await success.sendSuccessAsync(channel, "Server Status Change", "Los Angeles Whitelist has gone offline...", Colours.generalCol, References.GetDashboardURL()); } lawl = status.getLaWlStatus(); } if (References.IsStartUp() == true) { References.SetStartUp(false); } }