public void Dispose() { if (disposed) { return; } sessionManager.SessionStarted -= OnSessionStarted; sessionManager.SessionEnded -= OnSessionEnded; sessionManager.SessionUpdated -= OnSessionUpdated; disposed = true; twitch.Dispose(); botServer.Dispose(); }