/// <summary> /// Executes the specified options. /// </summary> /// <param name="options">The options.</param> public override void Execute(Options options) { var credentials = CredentialService.GetCredentials(); var user = UserService.GetUser(options.UserId); if (user == null) { Out.WriteLine("Couldn't find user with id {0}.", options.UserId); return; } credentials.Name = user.Name; credentials.JabberId = UserService.GetJabberIdForUser(user); CredentialService.SetCredentials(credentials); Out.WriteLine("Bot will use {0} ({1}).", credentials.Name, credentials.JabberId); }